diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-01-14 22:16:57 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-01-14 22:16:57 +0000 |
commit | 78c96751e6dc0bd894b5e38e065d2a317bee620c (patch) | |
tree | 6f2fe95e92a4ce2de5a16d7a8ee6e9ff590f04ec /cmd-generic.c | |
parent | 145b2685a1a42257e410307b1a20adb0bb95d39b (diff) |
Rename some flags I'm not happy about.
Diffstat (limited to 'cmd-generic.c')
-rw-r--r-- | cmd-generic.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd-generic.c b/cmd-generic.c index 75e7ea3b..b0f41ea6 100644 --- a/cmd-generic.c +++ b/cmd-generic.c @@ -1,4 +1,4 @@ -/* $Id: cmd-generic.c,v 1.20 2009-01-12 19:23:14 nicm Exp $ */ +/* $Id: cmd-generic.c,v 1.21 2009-01-14 22:16:56 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net> @@ -90,14 +90,14 @@ cmd_fill_argument(int flags, char **arg, int argc, char **argv) { *arg = NULL; - if (flags & CMD_ONEARG) { + if (flags & CMD_ARG1) { if (argc != 1) return (-1); *arg = xstrdup(argv[0]); return (0); } - if (flags & CMD_ZEROONEARG) { + if (flags & CMD_ARG01) { if (argc != 0 && argc != 1) return (-1); if (argc == 1) |