From f7729c8893b80a1f0af5ed0be632f1614bbacc46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Groenvall?= Date: Mon, 25 Sep 1995 17:48:47 +0000 Subject: [PATCH] Posixized git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@120 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/popper/pop_xmit.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/appl/popper/pop_xmit.c b/appl/popper/pop_xmit.c index 63b04960e..f4ef88916 100644 --- a/appl/popper/pop_xmit.c +++ b/appl/popper/pop_xmit.c @@ -12,9 +12,6 @@ static char SccsId[] = "@(#)@(#)pop_xmit.c 2.1 2.1 3/18/91"; #include #include #include -#ifdef _AIX -#define _BSD -#endif #include #include "popper.h" @@ -31,7 +28,7 @@ POP * p; char buffer[MAXLINELEN]; /* Read buffer */ char temp_xmit[MAXDROPLEN]; /* Name of the temporary filedrop */ - union wait stat; + int stat; int id, pid; /* Create a temporary file into which to copy the user's message */ @@ -88,7 +85,7 @@ POP * p; default: while((id = wait(&stat)) >=0 && id != pid); if (!p->debug) (void)unlink (temp_xmit); - if (stat.w_retcode) + if (WEXITSTATUS(stat) != 0) return (pop_msg(p,POP_FAILURE,"Unable to send message")); return (pop_msg (p,POP_SUCCESS,"Message sent successfully")); }