summaryrefslogtreecommitdiff
path: root/usr.sbin/npppctl
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2021-11-15 15:14:25 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2021-11-15 15:14:25 +0000
commit5a93c8ec06b1efb5de2aaddafe4d83dc9e9bf711 (patch)
tree5a5bf766be455d0d4878b622d591de0cd87910ad /usr.sbin/npppctl
parent5f5cf94be0abb2893e18be98e3328ff7a952ba28 (diff)
No need to declare optind, optarg or opterr; unistd.h does this for us.
From Jan Stary. OK deraadt@
Diffstat (limited to 'usr.sbin/npppctl')
-rw-r--r--usr.sbin/npppctl/npppctl.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.sbin/npppctl/npppctl.c b/usr.sbin/npppctl/npppctl.c
index 82706168073..398304e9080 100644
--- a/usr.sbin/npppctl/npppctl.c
+++ b/usr.sbin/npppctl/npppctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: npppctl.c,v 1.9 2019/06/28 13:32:49 deraadt Exp $ */
+/* $OpenBSD: npppctl.c,v 1.10 2021/11/15 15:14:24 millert Exp $ */
/*
* Copyright (c) 2012 Internet Initiative Japan Inc.
@@ -80,8 +80,6 @@ main(int argc, char *argv[])
struct parse_result *result;
struct sockaddr_un sun;
const char *npppd_ctlpath = NPPPD_SOCKET;
- extern int optind;
- extern char *optarg;
while ((ch = getopt(argc, argv, "ns:")) != -1)
switch (ch) {