summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-06-23 01:11:13 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-06-23 01:11:13 +0000
commit32b880d3b2bd093e0b8def213e9ebf259d8166cb (patch)
tree6364cfcff1d7d0d3c8f8d416d725a4873a9aa04d
parentb18f2a7c66202fd985398cae0cd2b5c61592633b (diff)
long != int
-rw-r--r--usr.sbin/ypserv/common/yplib_host.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ypserv/common/yplib_host.c b/usr.sbin/ypserv/common/yplib_host.c
index 7989643d132..0672eb0a4bb 100644
--- a/usr.sbin/ypserv/common/yplib_host.c
+++ b/usr.sbin/ypserv/common/yplib_host.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: yplib_host.c,v 1.6 1997/05/01 22:14:44 niklas Exp $ */
+/* $OpenBSD: yplib_host.c,v 1.7 1997/06/23 01:11:12 deraadt Exp $ */
/*
* Copyright (c) 1992, 1993 Theo de Raadt <deraadt@theos.com>
@@ -32,7 +32,7 @@
*/
#ifndef LINT
-static char *rcsid = "$OpenBSD: yplib_host.c,v 1.6 1997/05/01 22:14:44 niklas Exp $";
+static char *rcsid = "$OpenBSD: yplib_host.c,v 1.7 1997/06/23 01:11:12 deraadt Exp $";
#endif
#include <sys/param.h>
@@ -99,7 +99,7 @@ int usetcp;
server);
exit(1);
}
- rsrv_sin.sin_addr.s_addr = *(u_long*)h->h_addr;
+ rsrv_sin.sin_addr.s_addr = *(u_int32_t *)h->h_addr;
}
tv.tv_sec = 10;