[Phonehome-commits] r103 - in trunk/client: debian src

pamadio at garage.maemo.org pamadio at garage.maemo.org
Mon Oct 20 22:20:28 EEST 2008


Author: pamadio
Date: 2008-10-20 22:20:26 +0300 (Mon, 20 Oct 2008)
New Revision: 103

Modified:
   trunk/client/debian/changelog
   trunk/client/src/dsk_mgr.c
Log:
saving to file was commented ou

Modified: trunk/client/debian/changelog
===================================================================
--- trunk/client/debian/changelog	2008-10-20 18:49:42 UTC (rev 102)
+++ trunk/client/debian/changelog	2008-10-20 19:20:26 UTC (rev 103)
@@ -1,6 +1,6 @@
-phonehome (0-1.20091019.1) unstable; urgency=low
+phonehome (0-1.20091020.1) unstable; urgency=low
 
-  * Initial release 
+  * Initial release
 
- -- Pierre Amadio <pierre.amadio at libertysurf.fr>  Sun, 19 Oct 2008 18:13:55 +0200
+ -- Pierre Amadio <pierre.amadio at libertysurf.fr>  Mon, 20 Oct 2008 20:08:53 +0200
 

Modified: trunk/client/src/dsk_mgr.c
===================================================================
--- trunk/client/src/dsk_mgr.c	2008-10-20 18:49:42 UTC (rev 102)
+++ trunk/client/src/dsk_mgr.c	2008-10-20 19:20:26 UTC (rev 103)
@@ -394,13 +394,14 @@
     return;
   }
 
+  if (new_head==NULL) {g_print("New_head is NULL\n");}
   while (new_head != NULL){
-      GSList * next_head=g_slist_next(new_head);
-      gps_info * cur_info=new_head->data;
-      //fprintf(fh,"%f:%f:%u\n",cur_info->lat,cur_info->lon,cur_info->date);
-      gps_positions=g_slist_remove(gps_positions, cur_info);
-      g_free(cur_info);
-      new_head=next_head;
+    GSList * next_head=g_slist_next(new_head);
+    gps_info * cur_info=new_head->data;
+    fprintf(fh,"%f:%f:%u\n",cur_info->lat,cur_info->lon,cur_info->date);
+    gps_positions=g_slist_remove(gps_positions, cur_info);
+    g_free(cur_info);
+    new_head=next_head;
   }
   fclose(fh);
 }
@@ -1168,13 +1169,14 @@
   //g_timeout_add(5000,my_timeout,(gpointer) mainloop);
   g_timeout_add(5*60*1000,monitor_connection,NULL);
   //fill_gps_positions_with_fake();
+  //send_gps_infos();  
   //save_positions_to_file();
 
   //g_slist_foreach(gps_positions, show_locations, NULL);
   //connection_available();
   //connection_available();
   //send_jpeg(NULL);
-  //send_gps_infos();  
+
   g_main_loop_run(mainloop);
   osso_deinitialize(osso_context);
 



More information about the Phonehome-commits mailing list