]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - hunt/huntd/ctl_transact.c
Fix sendmail section (8 -> 1) in xrefs.
[bsdgames-darwin.git] / hunt / huntd / ctl_transact.c
index 3e905923d491ddf19ba9fcc408d0611ca5ae9a47..4ad6215afcdcbe857c900311d0156875a71f9dac 100644 (file)
@@ -1,4 +1,4 @@
-/*     $NetBSD: ctl_transact.c,v 1.7 2009/07/04 01:01:18 dholland Exp $        */
+/*     $NetBSD: ctl_transact.c,v 1.9 2009/07/04 04:29:54 dholland Exp $        */
 /*
  * Copyright (c) 1983-2003, Regents of the University of California.
  * All rights reserved.
 /*
  * Copyright (c) 1983-2003, Regents of the University of California.
  * All rights reserved.
 
 #include "bsd.h"
 
 
 #include "bsd.h"
 
-#if    defined(TALK_43) || defined(TALK_42)
+#if defined(TALK_43) || defined(TALK_42)
 
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static char sccsid[] = "@(#)ctl_transact.c     5.2 (Berkeley) 3/13/86";
 #else
 
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static char sccsid[] = "@(#)ctl_transact.c     5.2 (Berkeley) 3/13/86";
 #else
-__RCSID("$NetBSD: ctl_transact.c,v 1.7 2009/07/04 01:01:18 dholland Exp $");
+__RCSID("$NetBSD: ctl_transact.c,v 1.9 2009/07/04 04:29:54 dholland Exp $");
 #endif
 #endif /* not lint */
 
 #endif
 #endif /* not lint */
 
@@ -57,11 +57,7 @@ __RCSID("$NetBSD: ctl_transact.c,v 1.7 2009/07/04 01:01:18 dholland Exp $");
  * of time
  */
 void
  * of time
  */
 void
-ctl_transact(target, msg, type, rp)
-       struct in_addr target;
-       CTL_MSG msg;
-       int type;
-       CTL_RESPONSE *rp;
+ctl_transact(struct in_addr target, CTL_MSG msg, int type, CTL_RESPONSE *rp)
 {
        struct pollfd set[1];
        int nready, cc, retries;
 {
        struct pollfd set[1];
        int nready, cc, retries;
@@ -113,20 +109,20 @@ ctl_transact(target, msg, type, rp)
                        /* an immediate poll */
                        nready = poll(set, 1, 0);
                } while (nready > 0 && (
                        /* an immediate poll */
                        nready = poll(set, 1, 0);
                } while (nready > 0 && (
-#ifdef TALK_43
+#ifdef TALK_43
                    rp->vers != TALK_VERSION ||
 #endif
                    rp->type != type));
        } while (
                    rp->vers != TALK_VERSION ||
 #endif
                    rp->type != type));
        } while (
-#ifdef TALK_43
+#ifdef TALK_43
            rp->vers != TALK_VERSION ||
 #endif
            rp->type != type);
        rp->id_num = ntohl(rp->id_num);
            rp->vers != TALK_VERSION ||
 #endif
            rp->type != type);
        rp->id_num = ntohl(rp->id_num);
-#ifdef TALK_43
+#ifdef TALK_43
        rp->addr.sa_family = ntohs(rp->addr.sa_family);
        rp->addr.sa_family = ntohs(rp->addr.sa_family);
-# else
+#else
        rp->addr.sin_family = ntohs(rp->addr.sin_family);
        rp->addr.sin_family = ntohs(rp->addr.sin_family);
-# endif
+#endif
 }
 #endif
 }
 #endif