diff options
author | 2003-06-08 22:13:01 +0000 | |
---|---|---|
committer | 2003-06-08 22:13:01 +0000 | |
commit | 0c564b76d88ef19d64279020ffe0e70fcb80875b (patch) | |
tree | 3625e32a6d93d6dac27be9151d46bae35ed18489 | |
parent | Sanity check username length and convert to ANSI function headers. (diff) | |
download | wireguard-openbsd-0c564b76d88ef19d64279020ffe0e70fcb80875b.tar.xz wireguard-openbsd-0c564b76d88ef19d64279020ffe0e70fcb80875b.zip |
Make c_word const; from NetBSD (tron)
-rw-r--r-- | usr.sbin/user/main.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/user/main.c b/usr.sbin/user/main.c index 989df01e94e..3b9e70b23b5 100644 --- a/usr.sbin/user/main.c +++ b/usr.sbin/user/main.c @@ -1,5 +1,5 @@ -/* $OpenBSD: main.c,v 1.5 2001/12/05 10:12:50 deraadt Exp $ */ -/* $NetBSD: main.c,v 1.1 1999/12/24 09:08:50 agc Exp $ */ +/* $OpenBSD: main.c,v 1.6 2003/06/08 22:13:01 millert Exp $ */ +/* $NetBSD: main.c,v 1.3 2002/07/09 10:34:16 tron Exp $ */ /* * Copyright (c) 1999 Alistair G. Crooks. All rights reserved. @@ -45,9 +45,9 @@ enum { /* this struct describes a command */ typedef struct cmd_t { - int c_wc; /* word count */ - char *c_word[MaxCmdWords]; /* command words */ - int (*c_func)(int argc, char **argv); /* called function */ + int c_wc; /* word count */ + const char *c_word[MaxCmdWords]; /* command words */ + int (*c_func)(int, char **); /* called function */ } cmd_t; /* despatch table for commands */ |