* SUCH DAMAGE.
*
* from: @(#)get_args.c 8.1 (Berkeley) 6/6/93
- * $Id: get_args.c,v 1.15 2021/10/21 10:55:56 deraadt Exp $
+ * $Id: get_args.c,v 1.16 2021/11/15 15:14:24 millert Exp $
*/
/*
#include <sys/stat.h>
#include <unistd.h>
-extern int optind;
-extern char *optarg;
-
#if defined(DEBUG) && defined(PARANOID)
char **gargv;
#endif /* defined(DEBUG) && defined(PARANOID) */
* SUCH DAMAGE.
*
* from: @(#)amq.c 8.1 (Berkeley) 6/7/93
- * $Id: amq.c,v 1.21 2017/01/21 08:33:51 krw Exp $
+ * $Id: amq.c,v 1.22 2021/11/15 15:14:24 millert Exp $
*/
/*
static char localhost[] = "localhost";
static char *def_server = localhost;
-extern int optind;
-extern char *optarg;
-
static struct timeval tmo = { 10, 0 };
#define TIMEOUT tmo
-/* $OpenBSD: crunchgen.c,v 1.24 2021/10/24 21:24:18 deraadt Exp $ */
+/* $OpenBSD: crunchgen.c,v 1.25 2021/11/15 15:14:24 millert Exp $ */
/*
* Copyright (c) 1994 University of Maryland
{
char *p;
int optc;
- extern int optind;
- extern char *optarg;
if (pledge("stdio rpath wpath cpath proc exec", NULL) == -1) {
perror("pledge");
-/* $OpenBSD: mtree.c,v 1.26 2018/09/16 12:43:40 millert Exp $ */
+/* $OpenBSD: mtree.c,v 1.27 2021/11/15 15:14:24 millert Exp $ */
/* $NetBSD: mtree.c,v 1.7 1996/09/05 23:29:22 thorpej Exp $ */
/*-
int
main(int argc, char *argv[])
{
- extern int optind;
- extern char *optarg;
int ch;
char *dir, *p;
int status;
-/* $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.
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) {
-/* $OpenBSD: npppd.c,v 1.51 2021/03/29 03:54:39 yasuoka Exp $ */
+/* $OpenBSD: npppd.c,v 1.52 2021/11/15 15:14:24 millert Exp $ */
/*-
* Copyright (c) 2005-2008,2009 Internet Initiative Japan Inc.
* Next pppd(nppd). This file provides a npppd daemon process and operations
* for npppd instance.
* @author Yasuoka Masahiko
- * $Id: npppd.c,v 1.51 2021/03/29 03:54:39 yasuoka Exp $
+ * $Id: npppd.c,v 1.52 2021/11/15 15:14:24 millert Exp $
*/
#include "version.h"
#include <sys/param.h> /* ALIGNED_POINTER */
main(int argc, char *argv[])
{
int ch, stop_by_error, runasdaemon = 1, nflag = 0;
- extern char *optarg;
const char *npppd_conf0 = DEFAULT_NPPPD_CONF;
struct passwd *pw;
-/* $OpenBSD: pstat.c,v 1.126 2021/10/20 06:35:40 semarie Exp $ */
+/* $OpenBSD: pstat.c,v 1.127 2021/11/15 15:14:24 millert Exp $ */
/* $NetBSD: pstat.c,v 1.27 1996/10/23 22:50:06 cgd Exp $ */
/*-
int fileflag = 0, swapflag = 0, ttyflag = 0, vnodeflag = 0, ch;
char buf[_POSIX2_LINE_MAX];
const char *dformat = NULL;
- extern char *optarg;
- extern int optind;
int i;
hideroot = getuid();
char *qfnp, *whoami;
long argnum, done = 0;
int i, offmode = 0, errs = 0;
- extern int optind;
int ch;
whoami = strrchr(*argv, '/') + 1;
-/* $OpenBSD: rarpd.c,v 1.78 2021/09/06 13:32:18 deraadt Exp $ */
+/* $OpenBSD: rarpd.c,v 1.79 2021/11/15 15:14:24 millert Exp $ */
/* $NetBSD: rarpd.c,v 1.25 1998/04/23 02:48:33 mrg Exp $ */
/*
main(int argc, char *argv[])
{
extern char *__progname;
- extern int optind, opterr;
int op;
/* All error reporting is done through syslogs. */
-/* $OpenBSD: rdate.c,v 1.35 2015/12/23 19:13:52 deraadt Exp $ */
+/* $OpenBSD: rdate.c,v 1.36 2021/11/15 15:14:24 millert Exp $ */
/* $NetBSD: rdate.c,v 1.4 1996/03/16 12:37:45 pk Exp $ */
/*
int pr = 0, silent = 0, ntp = 1, verbose = 0;
int slidetime = 0, corrleaps = 0;
char *hname;
- extern int optind;
int c, p[2], pid;
int family = PF_UNSPEC;
struct group *gr;
int gflag = 0, uflag = 0, errs = 0;
long i, argnum, done = 0;
- extern char *optarg;
- extern int optind;
char *qfnp;
int ch;
-/* $OpenBSD: bootparamd.c,v 1.21 2016/10/16 10:40:58 jca Exp $ */
+/* $OpenBSD: bootparamd.c,v 1.22 2021/11/15 15:14:24 millert Exp $ */
/*
* This code is not copyright, and is placed in the public domain.
extern char *__progname;
char *bootpfile = _PATH_BOOTPARAMS;
-extern char *optarg;
-extern int optind;
static void
usage(void)
-/* $OpenBSD: syslogc.c,v 1.18 2015/10/13 16:30:55 deraadt Exp $ */
+/* $OpenBSD: syslogc.c,v 1.19 2021/11/15 15:14:24 millert Exp $ */
/*
* Copyright (c) 2004 Damien Miller
struct sockaddr_un ctl;
int ctlsock, ch, oflag, rval;
FILE *ctlf;
- extern char *optarg;
- extern int optind;
struct ctl_cmd cc;
struct ctl_reply_hdr rr;
const char *errstr;