diff options
author | Chris Larson <clarson@kergoth.com> | 2004-11-09 00:36:47 +0000 |
---|---|---|
committer | Chris Larson <clarson@kergoth.com> | 2004-11-09 00:36:47 +0000 |
commit | f96441b9faf769c9ecdd4d338b605ea3d0cc4010 (patch) | |
tree | edb17ec2c4ea13c5acb1c7350957a249a820e28d /gpsd/gpsd-qpegps-0.9.2 | |
parent | b6588aa6851fb220cedc387d21c51513ef8d67f4 (diff) |
Disable bk EOLN_NATIVE conversions on all files in packages FILESPATHs, to prevent it screwing up patches.
BKrev: 4190111fA4MuVozAqwE7xOSL9fr-TA
Diffstat (limited to 'gpsd/gpsd-qpegps-0.9.2')
-rw-r--r-- | gpsd/gpsd-qpegps-0.9.2/gcc3.patch | 11 | ||||
-rw-r--r-- | gpsd/gpsd-qpegps-0.9.2/nmea-fix.patch | 24 |
2 files changed, 35 insertions, 0 deletions
diff --git a/gpsd/gpsd-qpegps-0.9.2/gcc3.patch b/gpsd/gpsd-qpegps-0.9.2/gcc3.patch index e69de29bb2..191405e909 100644 --- a/gpsd/gpsd-qpegps-0.9.2/gcc3.patch +++ b/gpsd/gpsd-qpegps-0.9.2/gcc3.patch @@ -0,0 +1,11 @@ +--- gpsd-1.07/netlib.c~gcc3 2002-04-02 04:48:10.000000000 +0200 ++++ gpsd-1.07/netlib.c 2003-08-07 20:52:38.000000000 +0200 +@@ -9,7 +9,7 @@ + #include <sys/types.h> + #include <sys/socket.h> + #include <netinet/in.h> +-#include <varargs.h> ++#include <stdarg.h> + #include <netdb.h> + #include <stdio.h> + #include <arpa/inet.h> diff --git a/gpsd/gpsd-qpegps-0.9.2/nmea-fix.patch b/gpsd/gpsd-qpegps-0.9.2/nmea-fix.patch index e69de29bb2..8d6ec0b3ea 100644 --- a/gpsd/gpsd-qpegps-0.9.2/nmea-fix.patch +++ b/gpsd/gpsd-qpegps-0.9.2/nmea-fix.patch @@ -0,0 +1,24 @@ +--- gpsd-1.10/nmea_parse.c.orig 2004-03-01 23:32:52.147650832 +0000 ++++ gpsd-1.10/nmea_parse.c 2004-03-01 23:32:43.544958640 +0000 +@@ -261,7 +261,7 @@ + unsigned char sum = '\0'; + char c, *p = sentence; + +- while ((c = *p++) != '*') ++ while ((c = *p++) != '*' && c != '\0') + sum ^= c; + + sprintf(p, "%02X\r\n", sum); +@@ -276,10 +276,10 @@ + static char *field(char *sentence, short n) + { + static char result[100]; +- char *p = sentence; ++ char c, *p = sentence; + + while (n-- > 0) +- while (*p++ != ','); ++ while ((c = *p++) != ',' && c != '\0'); + strcpy(result, p); + p = result; + while (*p && *p != ',' && *p != '*' && *p != '\r') |