projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Require at least 2 chars for `no' variants of switches.
[mmh]
/
uip
/
mark.c
diff --git
a/uip/mark.c
b/uip/mark.c
index
2914a44
..
c1da644
100644
(file)
--- a/
uip/mark.c
+++ b/
uip/mark.c
@@
-23,13
+23,13
@@
static struct swit switches[] = {
#define PUBLSW 4
{ "public", 0 },
#define NPUBLSW 5
#define PUBLSW 4
{ "public", 0 },
#define NPUBLSW 5
- { "nopublic", 0 },
+ { "nopublic", 2 },
#define ZEROSW 6
{ "zero", 0 },
#define NZEROSW 7
#define ZEROSW 6
{ "zero", 0 },
#define NZEROSW 7
- { "nozero", 0 },
+ { "nozero", 2 },
#define VERSIONSW 8
#define VERSIONSW 8
- { "version", 0 },
+ { "Version", 0 },
#define HELPSW 9
{ "help", 0 },
#define DEBUGSW 10
#define HELPSW 9
{ "help", 0 },
#define DEBUGSW 10
@@
-48,8
+48,8
@@
int
main(int argc, char **argv)
{
int addsw = 0, deletesw = 0, debugsw = 0;
main(int argc, char **argv)
{
int addsw = 0, deletesw = 0, debugsw = 0;
- int listsw = 0, publicsw = -1, zerosw = 0;
- int seqp = 0, msgnum;
+ int listsw = 0, publicsw = -1, zerosw = 0, msgnum;
+ unsigned int seqp = 0;
char *cp, *maildir, *folder = NULL, buf[BUFSIZ];
char **argp, **arguments;
char *seqs[NUMATTRS + 1];
char *cp, *maildir, *folder = NULL, buf[BUFSIZ];
char **argp, **arguments;
char *seqs[NUMATTRS + 1];
@@
-152,7
+152,7
@@
main(int argc, char **argv)
}
if (!msgs.size)
}
if (!msgs.size)
- app_msgarg(&msgs, listsw ? "all" :"cur");
+ app_msgarg(&msgs, listsw ? seq_all : seq_cur);
if (!folder)
folder = getcurfol();
maildir = toabsdir(folder);
if (!folder)
folder = getcurfol();
maildir = toabsdir(folder);