From fc8abb852f17e00ed7fd265e8e448e6e9537bab7 Mon Sep 17 00:00:00 2001 From: Karl Ramm Date: Sun, 20 Jan 2008 20:46:45 +0000 Subject: de K&Rify; drop xzwrite, zmailnotify && zpopnotify from Makefile --- clients/zaway/zaway.c | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'clients/zaway') diff --git a/clients/zaway/zaway.c b/clients/zaway/zaway.c index c8a5f58..67ff10a 100644 --- a/clients/zaway/zaway.c +++ b/clients/zaway/zaway.c @@ -24,11 +24,11 @@ static const char rcsid_zaway_c[] = "$Id$"; #define DEFAULT_MSG "I'm sorry, but I am currently away from the terminal and am\nnot able to receive your message.\n" #define RESPONSE_OPCODE "" -RETSIGTYPE cleanup(); +RETSIGTYPE cleanup(int); u_short port; -void usage(name) - char *name; +void +usage(char *name) { printf("Usage: %s [OPTIONS] [FILE]\n" "\n" @@ -38,9 +38,9 @@ void usage(name) name); } -int main(argc,argv) - int argc; - char *argv[]; +int +main(int argc, + char *argv[]) { FILE *fp; ZNotice_t notice; @@ -52,7 +52,7 @@ int main(argc,argv) int optchar, watch_location; char *cmdline_msg; int nlocs; - char *find_message(); + char *find_message(ZNotice_t *, FILE *); #ifdef _POSIX_VERSION struct sigaction sa; #endif @@ -203,11 +203,11 @@ int main(argc,argv) } } -char *find_message(notice,fp) - ZNotice_t *notice; - register FILE *fp; +char * +find_message(ZNotice_t *notice, + FILE *fp) { - register char *ptr,*ptr2; + char *ptr,*ptr2; char bfr[BUFSIZ],sender[BUFSIZ]; int gotone,lastwasnt; @@ -253,7 +253,8 @@ char *find_message(notice,fp) return (ptr); } -RETSIGTYPE cleanup() +RETSIGTYPE +cleanup(int ignored) { ZCancelSubscriptions(port); exit(1); -- cgit v1.2.3