diff --git a/clients/lcdvc/lcdvc.c b/clients/lcdvc/lcdvc.c index 7af554b..0cba89e 100644 --- a/clients/lcdvc/lcdvc.c +++ b/clients/lcdvc/lcdvc.c @@ -16,8 +16,8 @@ #include #include #include -extern char *optarg; -extern int optind, optopt, opterr; + +#include "getopt.h" #include "shared/str.h" #include "shared/report.h" @@ -27,8 +27,13 @@ extern int optind, optopt, opterr; #include "vc_link.h" #include "lcdvc.h" +#if !defined(SYSCONFDIR) +# define SYSCONFDIR "/etc" +#endif + #define DEFAULT_CONFIGFILE SYSCONFDIR "/lcdvc.conf" + char * help_text = "lcdvc - LCDproc virtual console displayer.\n" "Copyright (c) 2002, Joris Robijn\n" @@ -94,7 +99,7 @@ int main( int argc, char ** argv ) int process_command_line( int argc, char ** argv ) { - char c; + int c; int error = 0; /* No error output from getopt */