From 32b880d3b2bd093e0b8def213e9ebf259d8166cb Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 23 Jun 1997 01:11:13 +0000 Subject: long != int --- usr.sbin/ypserv/common/yplib_host.c | 6 +++--- 1 file 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 @@ -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 @@ -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; -- cgit v1.2.3