[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gpsd-commit-watch
Subject:    [Gpsd-commit-watch] r2567 - trunk
From:       garyemiller () sheep ! berlios ! de (Gary E !  Miller at BerliOS)
Date:       2005-05-27 2:19:46
Message-ID: 200505270219.j4R2JkY9021064 () sheep ! berlios ! de
[Download RAW message or body]

Author: garyemiller
Date: 2005-05-27 04:18:57 +0200 (Fri, 27 May 2005)
New Revision: 2567

Modified:
   trunk/garmin.c
Log:
last obvious splint changes, the remaining 6 are splint delusions

Modified: trunk/garmin.c
===================================================================
--- trunk/garmin.c	2005-05-27 01:55:22 UTC (rev 2566)
+++ trunk/garmin.c	2005-05-27 02:18:57 UTC (rev 2567)
@@ -34,6 +34,10 @@
  *      hangs in the fread loop instead of keeping state and returning.
  *      may or may not work on a little-endian machine
  */
+
+#define __USE_POSIX199309 1
+#include <time.h> // for nanosleep()
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <math.h>
@@ -624,7 +628,7 @@
     if ( !session->GarminBuffer ) {
 	    // get a packet buffer
 	    session->GarminBuffer = calloc( sizeof(Packet_t), 1);
-	    if ( !session->GarminBuffer ) {
+	    if ( NULL == session->GarminBuffer ) {
 		gpsd_report(0, "garmin_probe: out of memory!\n");
 		return 0;
             }
@@ -831,7 +835,7 @@
 	//SendPacket(session,  thePacket);
 }
 
-static int garmin_get_packet(struct gps_device_t *session, unsigned int waiting UNUSED)
+static int garmin_get_packet(struct gps_device_t *session, /*@unused@*/ unsigned int waiting UNUSED ) 
 {
     return ( 0 == GetPacket( session ) ? 1 : 0);
 }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic