From: jca Date: Mon, 19 Oct 2015 11:52:51 +0000 (+0000) Subject: optarg and optind are declared by unistd.h X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=d4cb28ceff185f8d9c19cd265da58bd817f3d6d8;p=openbsd optarg and optind are declared by unistd.h --- diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c index a9edecf9409..a115bbbb3be 100644 --- a/usr.sbin/inetd/inetd.c +++ b/usr.sbin/inetd/inetd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: inetd.c,v 1.145 2015/10/19 11:51:17 jca Exp $ */ +/* $OpenBSD: inetd.c,v 1.146 2015/10/19 11:52:51 jca Exp $ */ /* * Copyright (c) 1983,1991 The Regents of the University of California. @@ -296,8 +296,6 @@ int main(int argc, char *argv[]) { int ch; - extern char *optarg; - extern int optind; while ((ch = getopt(argc, argv, "dR:")) != -1) switch (ch) {