summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryasuoka <yasuoka@openbsd.org>2013-09-13 03:25:27 +0000
committeryasuoka <yasuoka@openbsd.org>2013-09-13 03:25:27 +0000
commitdd8fd9c35609fa590a9432f81a281f2b1c3725e8 (patch)
tree9fd7c80c3ed0e2bc6630bf3dd9ebbe0585313177
parentMisc time_t tweaks. %ld / (long)tv_sec -> %lld / (long long)tv_sec. (diff)
downloadwireguard-openbsd-dd8fd9c35609fa590a9432f81a281f2b1c3725e8.tar.xz
wireguard-openbsd-dd8fd9c35609fa590a9432f81a281f2b1c3725e8.zip
fix some gcc warnings
-rw-r--r--usr.sbin/npppd/l2tp/l2tp_ctrl.c5
-rw-r--r--usr.sbin/npppd/npppd/npppd.c5
2 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/npppd/l2tp/l2tp_ctrl.c b/usr.sbin/npppd/l2tp/l2tp_ctrl.c
index d9f2a6c63c2..ffc88a6c884 100644
--- a/usr.sbin/npppd/l2tp/l2tp_ctrl.c
+++ b/usr.sbin/npppd/l2tp/l2tp_ctrl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: l2tp_ctrl.c,v 1.15 2013/04/16 07:45:19 yasuoka Exp $ */
+/* $OpenBSD: l2tp_ctrl.c,v 1.16 2013/09/13 03:25:27 yasuoka Exp $ */
/*-
* Copyright (c) 2009 Internet Initiative Japan Inc.
@@ -26,7 +26,7 @@
* SUCH DAMAGE.
*/
/**@file Control connection processing functions for L2TP LNS */
-/* $Id: l2tp_ctrl.c,v 1.15 2013/04/16 07:45:19 yasuoka Exp $ */
+/* $Id: l2tp_ctrl.c,v 1.16 2013/09/13 03:25:27 yasuoka Exp $ */
#include <sys/types.h>
#include <sys/param.h>
#include <sys/time.h>
@@ -46,6 +46,7 @@
#include <string.h>
#include <syslog.h>
#include <time.h>
+#include <unistd.h>
#ifdef USE_LIBSOCKUTIL
#include <seil/sockfromto.h>
diff --git a/usr.sbin/npppd/npppd/npppd.c b/usr.sbin/npppd/npppd/npppd.c
index fe2ccb48b24..65456a32d8c 100644
--- a/usr.sbin/npppd/npppd/npppd.c
+++ b/usr.sbin/npppd/npppd/npppd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: npppd.c,v 1.31 2013/06/03 23:26:57 yasuoka Exp $ */
+/* $OpenBSD: npppd.c,v 1.32 2013/09/13 03:25:28 yasuoka Exp $ */
/*-
* Copyright (c) 2005-2008,2009 Internet Initiative Japan Inc.
@@ -29,7 +29,7 @@
* Next pppd(nppd). This file provides a npppd daemon process and operations
* for npppd instance.
* @author Yasuoka Masahiko
- * $Id: npppd.c,v 1.31 2013/06/03 23:26:57 yasuoka Exp $
+ * $Id: npppd.c,v 1.32 2013/09/13 03:25:28 yasuoka Exp $
*/
#include "version.h"
#include <sys/types.h>
@@ -247,7 +247,6 @@ npppd_init(npppd *_this, const char *config_file)
int i, status = -1;
const char *pidpath0;
FILE *pidfp = NULL;
- long seed;
memset(_this, 0, sizeof(npppd));
#ifndef NO_ROUTE_FOR_POOLED_ADDRESS