summaryrefslogtreecommitdiff
path: root/contrib/binlog.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2016-08-15 21:21:46 -0700
committerGary E. Miller <gem@rellim.com>2016-08-15 21:21:46 -0700
commit6692860642f8e359bc9da2603fea9fc7062884fc (patch)
treeca45922a30ec3a0e2f2428ba3df9925b32332111 /contrib/binlog.c
parent8f8f6ed4bd33f476df217dc24b08bfa5849450de (diff)
downloadgpsd-6692860642f8e359bc9da2603fea9fc7062884fc.tar.gz
bzero() is gone in POSIX 2008. Use memset()
Also two #defines for gpspipe.c
Diffstat (limited to 'contrib/binlog.c')
-rw-r--r--contrib/binlog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/binlog.c b/contrib/binlog.c
index 0cfd4781..0e2c7cf3 100644
--- a/contrib/binlog.c
+++ b/contrib/binlog.c
@@ -66,7 +66,7 @@ int main(int argc, char **argv) {
delay.tv_sec = 0;
delay.tv_nsec = 1000000L;
nanosleep(&delay, NULL);
- bzero(buf, BUFSIZ);
+ memset(buf, 0, BUFSIZ);
spinner( n++ );
}
/* NOTREACHED */