From 490c21cd94489729f34b4c4b690a4c103a78ec11 Mon Sep 17 00:00:00 2001 From: manuel Date: Mon, 27 Jan 2014 15:37:28 +0100 Subject: make commands argument mandatory --- qmail-popup.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'qmail-popup.c') 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"); } void err_syntax() { err("syntax error"); } void err_wantuser() { err("USER first"); } -void err_authoriz() { err("authorization first"); } +void err_authoriz(arg) char *arg; { err("authorization first"); } -void okay() { puts("+OK \r\n"); flush(); } -void pop3_quit() { okay(); die(); } +void okay(arg) char *arg; { puts("+OK \r\n"); flush(); } +void pop3_quit(arg) char *arg; { okay(); die(); } char unique[FMT_ULONG + FMT_ULONG + 3]; @@ -138,7 +138,7 @@ void pop3_greet() void pop3_user(arg) char *arg; { if (!*arg) { err_syntax(); return; } - okay(); + okay(0); seenuser = 1; if (!stralloc_copys(&username,arg)) die_nomem(); if (!stralloc_0(&username)) die_nomem(); -- cgit v1.2.3