diff options
| author | christos <christos@NetBSD.org> | 1997-10-09 21:20:16 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 1997-10-09 21:20:16 +0000 |
| commit | d6ddaab4e6c31a7baac990426b600d0f6c7b77e0 (patch) | |
| tree | aff84ba3edc26c7b9ba53d64d5734666f01bc001 /lib/libwrap/shell_cmd.c | |
| parent | 9f6d6708f4cb216e5acd142fcd5f135086384305 (diff) | |
Fix for WARNS=1 and remove WARNS override from Makefile
Diffstat (limited to 'lib/libwrap/shell_cmd.c')
| -rw-r--r-- | lib/libwrap/shell_cmd.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/lib/libwrap/shell_cmd.c b/lib/libwrap/shell_cmd.c index 62d31bc5240..55d5251136f 100644 --- a/lib/libwrap/shell_cmd.c +++ b/lib/libwrap/shell_cmd.c @@ -1,3 +1,5 @@ +/* $NetBSD: shell_cmd.c,v 1.2 1997/10/09 21:20:48 christos Exp $ */ + /* * shell_cmd() takes a shell command after %<character> substitutions. The * command is executed by a /bin/sh child process, with standard input, @@ -8,28 +10,35 @@ * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. */ +#include <sys/cdefs.h> #ifndef lint +#if 0 static char sccsid[] = "@(#) shell_cmd.c 1.5 94/12/28 17:42:44"; +#else +__RCSID("$NetBSD: shell_cmd.c,v 1.2 1997/10/09 21:20:48 christos Exp $"); +#endif #endif /* System libraries. */ #include <sys/types.h> #include <sys/param.h> +#include <sys/wait.h> #include <signal.h> #include <stdio.h> +#include <stdlib.h> +#include <unistd.h> +#include <fcntl.h> #include <syslog.h> #include <string.h> -extern void exit(); - /* Local stuff. */ #include "tcpd.h" /* Forward declarations. */ -static void do_child(); +static void do_child __P((char *)); /* shell_cmd - execute shell command */ |
