diff options
author | Gary E. Miller <gem@rellim.com> | 2016-08-15 21:21:46 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2016-08-15 21:21:46 -0700 |
commit | 6692860642f8e359bc9da2603fea9fc7062884fc (patch) | |
tree | ca45922a30ec3a0e2f2428ba3df9925b32332111 /driver_garmin_txt.c | |
parent | 8f8f6ed4bd33f476df217dc24b08bfa5849450de (diff) | |
download | gpsd-6692860642f8e359bc9da2603fea9fc7062884fc.tar.gz |
bzero() is gone in POSIX 2008. Use memset()
Also two #defines for gpspipe.c
Diffstat (limited to 'driver_garmin_txt.c')
-rw-r--r-- | driver_garmin_txt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/driver_garmin_txt.c b/driver_garmin_txt.c index 8631ee3c..c14c5161 100644 --- a/driver_garmin_txt.c +++ b/driver_garmin_txt.c @@ -155,7 +155,7 @@ static int gar_decode(const struct gps_context_t *context, return -1; } - bzero(buf, (int)sizeof(buf)); + memset(buf, 0, (int)sizeof(buf)); (void)strlcpy(buf, data, length); gpsd_log(&context->errout, LOG_RAW + 2, "Decoded string: %s\n", buf); @@ -223,7 +223,7 @@ static int gar_int_decode(const struct gps_context_t *context, return -1; } - bzero(buf, (int)sizeof(buf)); + memset(buf, 0, (int)sizeof(buf)); (void)strlcpy(buf, data, length); gpsd_log(&context->errout, LOG_RAW + 2, "Decoded string: %s\n", buf); |