diff options
| author | manuel <manuel@mausz.at> | 2014-01-27 15:37:28 +0100 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2014-01-27 15:37:28 +0100 |
| commit | 490c21cd94489729f34b4c4b690a4c103a78ec11 (patch) | |
| tree | 813d8574e47b4097e2d595fc0c80b216c894536d /qmail-popup.c | |
| parent | b2596d21e976743f42a82b7a7a173c7874386bb4 (diff) | |
| download | qmail-490c21cd94489729f34b4c4b690a4c103a78ec11.tar.gz qmail-490c21cd94489729f34b4c4b690a4c103a78ec11.tar.bz2 qmail-490c21cd94489729f34b4c4b690a4c103a78ec11.zip | |
make commands argument mandatory
Diffstat (limited to 'qmail-popup.c')
| -rw-r--r-- | qmail-popup.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/qmail-popup.c b/qmail-popup.c index 5e6387a..8e5bc76 100644 --- a/qmail-popup.c +++ b/qmail-popup.c | |||
| @@ -64,10 +64,10 @@ void die_badauth() { err("authorization failed"); } | |||
| 64 | 64 | ||
| 65 | void err_syntax() { err("syntax error"); } | 65 | void err_syntax() { err("syntax error"); } |
| 66 | void err_wantuser() { err("USER first"); } | 66 | void err_wantuser() { err("USER first"); } |
| 67 | void err_authoriz() { err("authorization first"); } | 67 | void err_authoriz(arg) char *arg; { err("authorization first"); } |
| 68 | 68 | ||
| 69 | void okay() { puts("+OK \r\n"); flush(); } | 69 | void okay(arg) char *arg; { puts("+OK \r\n"); flush(); } |
| 70 | void pop3_quit() { okay(); die(); } | 70 | void pop3_quit(arg) char *arg; { okay(); die(); } |
| 71 | 71 | ||
| 72 | 72 | ||
| 73 | char unique[FMT_ULONG + FMT_ULONG + 3]; | 73 | char unique[FMT_ULONG + FMT_ULONG + 3]; |
| @@ -138,7 +138,7 @@ void pop3_greet() | |||
| 138 | void pop3_user(arg) char *arg; | 138 | void pop3_user(arg) char *arg; |
| 139 | { | 139 | { |
| 140 | if (!*arg) { err_syntax(); return; } | 140 | if (!*arg) { err_syntax(); return; } |
| 141 | okay(); | 141 | okay(0); |
| 142 | seenuser = 1; | 142 | seenuser = 1; |
| 143 | if (!stralloc_copys(&username,arg)) die_nomem(); | 143 | if (!stralloc_copys(&username,arg)) die_nomem(); |
| 144 | if (!stralloc_0(&username)) die_nomem(); | 144 | if (!stralloc_0(&username)) die_nomem(); |
