summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchl <chl@openbsd.org>2014-06-03 18:42:29 +0000
committerchl <chl@openbsd.org>2014-06-03 18:42:29 +0000
commit0c7aed50e7c68d36819cc90007578cb222cda36e (patch)
tree1ed16bff238921707935c189256cf4e0b550b402
parentrevert previous: guenther says it's wrong; (diff)
downloadwireguard-openbsd-0c7aed50e7c68d36819cc90007578cb222cda36e.tar.xz
wireguard-openbsd-0c7aed50e7c68d36819cc90007578cb222cda36e.zip
remove set but not used variable
found while building portable OpenNTPD ok henning@
-rw-r--r--usr.sbin/ntpd/server.c5
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;