diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2009-10-04 16:14:00 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2009-10-04 16:14:00 +0000 |
commit | abe18d8a3de86ed358f65ceff89bedc1f519e630 (patch) | |
tree | 128fb3a8b702b1fc5fba2e92d1865cbcea83fd02 /app/luit/luit.c | |
parent | 1435578951365337358d89623b531b2c68a1b07d (diff) |
update to luit version 1.0.4.
Diffstat (limited to 'app/luit/luit.c')
-rw-r--r-- | app/luit/luit.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/app/luit/luit.c b/app/luit/luit.c index 5c8d606b8..7fa7acf8c 100644 --- a/app/luit/luit.c +++ b/app/luit/luit.c @@ -34,8 +34,12 @@ THE SOFTWARE. #include <sys/ioctl.h> #include <signal.h> -#ifdef SVR4 -#include <stropts.h> +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + +#ifdef HAVE_STROPTS_H +# include <stropts.h> #endif #include <X11/fonts/fontenc.h> @@ -52,11 +56,11 @@ static char *locale_name = NULL; int ilog = -1; int olog = -1; int verbose = 0; -int converter = 0; -int exitOnChild = 0; +static int converter = 0; +static int exitOnChild = 0; -volatile int sigwinch_queued = 0; -volatile int sigchld_queued = 0; +static volatile int sigwinch_queued = 0; +static volatile int sigchld_queued = 0; static int convert(int, int); static int condom(int, char**); @@ -452,6 +456,8 @@ condom(int argc, char **argv) int rc; int val; + path = NULL; + child_argv = NULL; rc = parseArgs(argc, argv, child_argv0, &path, &child_argv); if(rc < 0) |