summaryrefslogtreecommitdiff
path: root/zwgc/main.c
diff options
context:
space:
mode:
authorGravatar Richard Basch <probe@mit.edu>1993-11-19 11:10:29 +0000
committerGravatar Richard Basch <probe@mit.edu>1993-11-19 11:10:29 +0000
commit1264bfd1b1846342bc043a81f280b8235062d019 (patch)
treea494c4615ebc9522d235f269063fe0b2c0aa57ce /zwgc/main.c
parent574d3bb9bee6bccfd8dedf2908fd963d17cd549c (diff)
Change bzero to memset [ANSI]
Some POSIX changes.
Diffstat (limited to 'zwgc/main.c')
-rw-r--r--zwgc/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/zwgc/main.c b/zwgc/main.c
index 14e04b9..c400ac3 100644
--- a/zwgc/main.c
+++ b/zwgc/main.c
@@ -85,7 +85,7 @@ static void fake_startup_packet()
var_set_variable("version", zwgc_version_string);
- _BZERO(&notice, sizeof(notice));
+ (void) memset(&notice, 0, sizeof(notice));
notice.z_version = "";
notice.z_class = "WG_CTL_CLASS";
@@ -355,7 +355,7 @@ static void signal_exit()
multiple SIGCHLD's at once, and don't process in time. */
static void signal_child()
{
-#if defined(POSIX)
+#ifdef POSIX
int status;
#else
union wait status;
@@ -430,8 +430,8 @@ static void detach()
register int i;
/* to try to get SIGHUP on user logout */
-#ifdef _AIX
- (void) setpgid(0, getpgrp(getppid()));
+#ifdef POSIX
+ (void) setpgid(0, tcgetpgrp(1));
#else
(void) setpgrp(0, getpgrp(getppid()));
#endif