diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2003-06-08 22:13:02 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2003-06-08 22:13:02 +0000 |
commit | e2ce8857349b11b2e572b12d671395d8f16e4f57 (patch) | |
tree | a2a29330902931ed5fdbf51c3d34d2c1d78b03b9 | |
parent | b7b2721da4fbda524f413c766b1a435a8a22e390 (diff) |
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 */ |