From 14d460e1b4e522cf853a54a6924a5e3763da64ae Mon Sep 17 00:00:00 2001 From: Philippe Charnier Date: Thu, 4 Dec 1997 07:25:19 +0000 Subject: Use err(3). Add prototypes. Document that startup scripts are rc.i386 and rc.conf (enable/disable) not rc.local. Use full pathname in SYNOPSIS section. --- libexec/xtend/user.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'libexec/xtend/user.c') diff --git a/libexec/xtend/user.c b/libexec/xtend/user.c index 1a863af6b054..c9e9e6d6df11 100644 --- a/libexec/xtend/user.c +++ b/libexec/xtend/user.c @@ -27,11 +27,17 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. - * - * $Id: user.c,v 1.5 1997/02/22 14:22:42 peter Exp $ */ +#ifndef lint +static const char rcsid[] = + "$Id$"; +#endif /* not lint */ + +#include #include +#include +#include #include #include #include "xtend.h" @@ -40,15 +46,19 @@ MONENTRY Monitor[MAXMON]; +int find __P((char *, char *[])); +void printstatus __P((FILE *, STATUS *)); + /* * Process a user command */ +int user_command() { char h; char *m; - int i, k, c, n, error; + int i, k, n, error; char cmd[512], dumppath[MAXPATHLEN+1], pkt[3]; FILE *dumpf; @@ -137,6 +147,7 @@ user_command() return(0); } +int find(s, tab) char *s; char *tab[]; @@ -149,6 +160,7 @@ char *tab[]; return(-1); } +void printstatus(f, s) FILE *f; STATUS *s; -- cgit v1.3