diff options
author | Charles Longeau <chl@cvs.openbsd.org> | 2014-06-03 18:42:30 +0000 |
---|---|---|
committer | Charles Longeau <chl@cvs.openbsd.org> | 2014-06-03 18:42:30 +0000 |
commit | 3f31dd14308de1974f4bbe60ce1f2a17c691d0f2 (patch) | |
tree | 2a8b5a0c9464b7ee2acd6218360ef31cf5b5926f /usr.sbin/ntpd | |
parent | 84ea050cba3f854612edf56509eb3af37de0774a (diff) |
remove set but not used variable
found while building portable OpenNTPD
ok henning@
Diffstat (limited to 'usr.sbin/ntpd')
-rw-r--r-- | usr.sbin/ntpd/server.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.sbin/ntpd/server.c b/usr.sbin/ntpd/server.c index f3d6185a58b..773368d7b8e 100644 --- a/usr.sbin/ntpd/server.c +++ b/usr.sbin/ntpd/server.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server.c,v 1.38 2013/10/21 08:48:22 phessler Exp $ */ +/* $OpenBSD: server.c,v 1.39 2014/06/03 18:42:29 chl Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -161,7 +161,6 @@ int server_dispatch(int fd, struct ntpd_conf *lconf) { ssize_t size; - u_int8_t version; double rectime; struct sockaddr_storage fsa; socklen_t fsa_len; @@ -185,8 +184,6 @@ server_dispatch(int fd, struct ntpd_conf *lconf) if (ntp_getmsg((struct sockaddr *)&fsa, buf, size, &query) == -1) return (0); - version = (query.status & VERSIONMASK) >> 3; - bzero(&reply, sizeof(reply)); if (lconf->status.synced) reply.status = lconf->status.leap; |