From 4c39d3d5d3a9a029eecd375d4c55d91ed234cc9c Mon Sep 17 00:00:00 2001 From: dholland Date: Mon, 28 Jan 2008 03:23:29 +0000 Subject: clean for WARNS=4 --- hunt/huntd/answer.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'hunt/huntd/answer.c') diff --git a/hunt/huntd/answer.c b/hunt/huntd/answer.c index 0759f750..91307b3b 100644 --- a/hunt/huntd/answer.c +++ b/hunt/huntd/answer.c @@ -1,4 +1,4 @@ -/* $NetBSD: answer.c,v 1.8 2006/05/09 20:18:06 mrg Exp $ */ +/* $NetBSD: answer.c,v 1.9 2008/01/28 03:23:29 dholland Exp $ */ /* * Copyright (c) 1983-2003, Regents of the University of California. * All rights reserved. @@ -32,7 +32,7 @@ #include #ifndef lint -__RCSID("$NetBSD: answer.c,v 1.8 2006/05/09 20:18:06 mrg Exp $"); +__RCSID("$NetBSD: answer.c,v 1.9 2008/01/28 03:23:29 dholland Exp $"); #endif /* not lint */ # include @@ -56,8 +56,8 @@ answer() static char team; static int enter_status; static socklen_t socklen; - static u_long machine; - static u_int32_t uid; + static uint32_t machine; + static uint32_t uid; static SOCKET sockstruct; char *cp1, *cp2; int flags; @@ -92,7 +92,7 @@ answer() version = htonl((u_int32_t) HUNT_VERSION); (void) write(newsock, (char *) &version, LONGLEN); (void) read(newsock, (char *) &uid, LONGLEN); - uid = ntohl((unsigned long) uid); + uid = ntohl(uid); (void) read(newsock, name, NAMELEN); (void) read(newsock, &team, 1); (void) read(newsock, (char *) &enter_status, LONGLEN); @@ -375,8 +375,8 @@ rand_dir() */ IDENT * get_ident(machine, uid, name, team) - u_long machine; - u_long uid; + uint32_t machine; + uint32_t uid; char *name; char team; { -- cgit v1.2.3