diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2012-09-07 06:24:26 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2012-09-07 06:24:26 -0400 |
commit | 620f7445dcacfbb740c55a9e4b891593c3f94910 (patch) | |
tree | e092711dae9ac1af540a2e5469493f13303248c1 /driver_nmea2000.c | |
parent | 76b2aaba9575d60230387555822b18ceeb07353a (diff) | |
download | gpsd-620f7445dcacfbb740c55a9e4b891593c3f94910.tar.gz |
Nuke trailing whitespace in C source.
Diffstat (limited to 'driver_nmea2000.c')
-rw-r--r-- | driver_nmea2000.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/driver_nmea2000.c b/driver_nmea2000.c index 6232e7cc..ac879509 100644 --- a/driver_nmea2000.c +++ b/driver_nmea2000.c @@ -305,7 +305,7 @@ static gps_mask_t hnd_129029(unsigned char *bu, int len, PGN *pgn, struct gps_de mask = 0; session->driver.nmea2000.sid[3] = bu[0]; - + /*@-type@*//* splint has a bug here */ session->newdata.time = getleu16(bu,1) * 24*60*60 + getleu32(bu, 3)/1e4; /*@+type@*/ @@ -668,7 +668,7 @@ static void find_pgn(struct can_frame *frame, struct gps_device_t *session) work = search_pgnlist(source_pgn, session->driver.nmea2000.pgnlist); } else { PGN *pgnlist; - + pgnlist = &gpspgn[0]; work = search_pgnlist(source_pgn, pgnlist); if (work == NULL) { @@ -749,7 +749,7 @@ static void find_pgn(struct can_frame *frame, struct gps_device_t *session) static ssize_t nmea2000_get(struct gps_device_t *session) -{ +{ struct can_frame frame; ssize_t status; @@ -771,10 +771,10 @@ static ssize_t nmea2000_get(struct gps_device_t *session) /*@-mustfreeonly@*/ static gps_mask_t nmea2000_parse_input(struct gps_device_t *session) -{ +{ gps_mask_t mask; PGN *work; - + // printf("NMEA2000 parse_input called\n"); mask = 0; work = (PGN *) session->driver.nmea2000.workpgn; @@ -884,7 +884,7 @@ int nmea2000_open(struct gps_device_t *session) /* Locate the interface you wish to use */ strlcpy(ifr.ifr_name, interface_name, sizeof(ifr.ifr_name)); - status = ioctl(sock, SIOCGIFINDEX, &ifr); /* ifr.ifr_ifindex gets filled + status = ioctl(sock, SIOCGIFINDEX, &ifr); /* ifr.ifr_ifindex gets filled * with that device's index */ if (status != 0) { |