X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/b4927eeb3c0ce78e92584e8f5c602101445e1cc4..2620fc1c075ed882bcf489107544e5e79dc846a0:/hunt/huntd/ctl_transact.c diff --git a/hunt/huntd/ctl_transact.c b/hunt/huntd/ctl_transact.c index 3e905923..4ad6215a 100644 --- a/hunt/huntd/ctl_transact.c +++ b/hunt/huntd/ctl_transact.c @@ -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. @@ -32,14 +32,14 @@ #include "bsd.h" -#if defined(TALK_43) || defined(TALK_42) +#if defined(TALK_43) || defined(TALK_42) #include #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 */ @@ -57,11 +57,7 @@ __RCSID("$NetBSD: ctl_transact.c,v 1.7 2009/07/04 01:01:18 dholland Exp $"); * 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; @@ -113,20 +109,20 @@ ctl_transact(target, msg, type, rp) /* 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 ( -#ifdef TALK_43 +#ifdef TALK_43 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); -# else +#else rp->addr.sin_family = ntohs(rp->addr.sin_family); -# endif +#endif } #endif