From 29b70ee8d651ddcfd8205f381a58923004f35500 Mon Sep 17 00:00:00 2001 From: marschap Date: Wed, 20 Sep 2006 08:14:57 +0000 Subject: [PATCH] rely on #include "getopt" to provide getopt's global variables --- clients/lcdexec/lcdexec.c | 3 --- server/main.c | 4 ---- 2 files changed, 7 deletions(-) diff --git a/clients/lcdexec/lcdexec.c b/clients/lcdexec/lcdexec.c index 8f3305e..f831707 100644 --- a/clients/lcdexec/lcdexec.c +++ b/clients/lcdexec/lcdexec.c @@ -46,9 +46,6 @@ char * help_text = char * progname = "lcdexec"; -extern char *optarg; -extern int optind, optopt, opterr; - /* Variables set by config */ #define UNSET_INT -1 #define UNSET_STR "\01" diff --git a/server/main.c b/server/main.c index b8fbadb..b1c66bf 100644 --- a/server/main.c +++ b/server/main.c @@ -51,10 +51,6 @@ #endif /* TODO: fill in what to include otherwise */ -/* REVISIT: externs should be provided by a header */ -extern char *optarg; -extern int optind, optopt, opterr; - #include "shared/report.h" #include "drivers.h"