summaryrefslogtreecommitdiff
path: root/clients/zaway
diff options
context:
space:
mode:
authorGravatar Richard Basch <probe@mit.edu>1993-09-24 12:30:45 +0000
committerGravatar Richard Basch <probe@mit.edu>1993-09-24 12:30:45 +0000
commitd1f878d4855529316111266dd8095be449683974 (patch)
tree93d83cfec2d8ccaadea74f455a625c00d7788993 /clients/zaway
parent5d03c68450ed2d65b9fcbc6a8756b6223304f11c (diff)
Cleaned up ifdef's a bit, relating to POSIX
Diffstat (limited to 'clients/zaway')
-rw-r--r--clients/zaway/zaway.c18
1 files changed, 5 insertions, 13 deletions
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 <stdlib.h>
+#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);