From d1f878d4855529316111266dd8095be449683974 Mon Sep 17 00:00:00 2001 From: Richard Basch Date: Fri, 24 Sep 1993 12:30:45 +0000 Subject: Cleaned up ifdef's a bit, relating to POSIX --- clients/zaway/zaway.c | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) (limited to 'clients/zaway') diff --git a/clients/zaway/zaway.c b/clients/zaway/zaway.c index 67e2656..c4095e4 100644 --- a/clients/zaway/zaway.c +++ b/clients/zaway/zaway.c @@ -26,19 +26,16 @@ static char rcsid_zaway_c[] = "$Id$"; #define MESSAGE_CLASS "MESSAGE" #define DEFAULT_MSG "I'm sorry, but I am currently away from the terminal and am\nnot able to receive your message.\n" -#ifdef _POSIX_SOURCE +#ifdef POSIX #include +#define SIGNAL_RETURN_TYPE void #else extern char *getenv(), *malloc(), *realloc(); -#endif extern uid_t getuid(); - -#if defined(ultrix) || defined(_POSIX_SOURCE) -void cleanup(); -#else -int cleanup(); +#define SIGNAL_RETURN_TYPE int #endif +SIGNAL_RETURN_TYPE cleanup(); u_short port; main(argc,argv) @@ -192,12 +189,7 @@ char *find_message(notice,fp) return (ptr); } -#if defined(ultrix) || defined(_POSIX_SOURCE) -void -#else -int -#endif -cleanup() +SIGNAL_RETURN_TYPE cleanup() { ZCancelSubscriptions(port); exit(1); -- cgit v1.2.3