X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Frcvstore.c;h=bb14ed98d6e92860404fdfe84bfcecaad3fdd217;hp=ebf3e14dac058facf863d232b364eb80c2abaca5;hb=ccf4f175ef4c4e7522f9510a4a1149c15d810dd9;hpb=d3540eaa4251b3a282115a72ed5d1bb39ce74b3f diff --git a/uip/rcvstore.c b/uip/rcvstore.c index ebf3e14..bb14ed9 100644 --- a/uip/rcvstore.c +++ b/uip/rcvstore.c @@ -11,29 +11,28 @@ #include #include #include -#include static struct swit switches[] = { #define CRETSW 0 { "create", 0 }, #define NCRETSW 1 - { "nocreate", 0 }, + { "nocreate", 2 }, #define UNSEENSW 2 { "unseen", 0 }, #define NUNSEENSW 3 - { "nounseen", 0 }, + { "nounseen", 2 }, #define PUBSW 4 { "public", 0 }, #define NPUBSW 5 - { "nopublic", 0 }, + { "nopublic", 2 }, #define ZEROSW 6 { "zero", 0 }, #define NZEROSW 7 - { "nozero", 0 }, + { "nozero", 2 }, #define SEQSW 8 { "sequence name", 0 }, #define VERSIONSW 9 - { "version", 0 }, + { "Version", 0 }, #define HELPSW 10 { "help", 0 }, { NULL, 0 } @@ -52,7 +51,8 @@ main(int argc, char **argv) { int publicsw = -1, zerosw = 0; int create = 1, unseensw = 1; - int fd, msgnum, seqp = 0; + int fd, msgnum; + size_t seqp = 0; char *cp, *maildir, *folder = NULL, buf[BUFSIZ]; char **argp, **arguments, *seqs[NUMATTRS+1]; struct msgs *mp; @@ -60,9 +60,7 @@ main(int argc, char **argv) done=unlink_done; -#ifdef LOCALE setlocale(LC_ALL, ""); -#endif invo_name = mhbasename(argv[0]); /* read user profile/context */