summaryrefslogtreecommitdiff
path: root/package/gpsd/patches/patch-contrib_motosend_c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-03-28 23:22:47 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2010-03-28 23:22:47 +0200
commit02fa287d32bea0c3c92e370c919c08138884fa67 (patch)
tree625addc5a18d64db5bf802f86a8125175562d04e /package/gpsd/patches/patch-contrib_motosend_c
parent2e006cc96290a7728df34a6c8e8396435e8a8c5f (diff)
parenteb443d5b254293f18479b3e84043ebe3958ad545 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/gpsd/patches/patch-contrib_motosend_c')
-rw-r--r--package/gpsd/patches/patch-contrib_motosend_c29
1 files changed, 0 insertions, 29 deletions
diff --git a/package/gpsd/patches/patch-contrib_motosend_c b/package/gpsd/patches/patch-contrib_motosend_c
deleted file mode 100644
index e2db10a74..000000000
--- a/package/gpsd/patches/patch-contrib_motosend_c
+++ /dev/null
@@ -1,29 +0,0 @@
---- gpsd-2.39.orig/contrib/motosend.c Thu Jun 26 21:08:36 2008
-+++ gpsd-2.39/contrib/motosend.c Tue Feb 16 21:33:16 2010
-@@ -81,7 +81,7 @@ int main(int argc, char **argv) {
- t = 0; n = 0;
- while (1){
- usleep(1000);
-- bzero(buf, BSIZ);
-+ memset(buf, 0, BSIZ);
- if ((l = read(fd, buf, BSIZ)) == -1)
- if (!(EINTR == errno || EAGAIN == errno))
- err(1, "read");
-@@ -119,7 +119,7 @@ static int moto_send(int fd, char *type, char *body )
- if ((buf = malloc(l+7)) == NULL)
- return -1;
-
-- bzero(buf, l+7);
-+ memset(buf, 0, l+7);
- buf[0] = '@'; buf[1] = '@';
- buf[2] = type[0]; buf[3] = type[1];
-
-@@ -171,7 +171,7 @@ int gpsd_hexpack(char *src, char *dst, int len){
- if ((l < 1) || (l > len))
- return -1;
-
-- bzero(dst, len);
-+ memset(dst, 0, len);
- for (i = 0; i < l; i++)
- if ((k = hex2bin(src+i*2)) != -1)
- dst[i] = (char)(k & 0xff);