From 4f70638ec2d434e0c546b32c6d67d33b3951506b Mon Sep 17 00:00:00 2001 From: David Schultz Date: Mon, 16 Feb 2004 10:03:44 +0000 Subject: [PATCH] Don't pass a pointer to a 'long' to a function that expects an 'int *'. Submitted by: Roop Nanuwa PR: 62615 --- libexec/ypxfr/ypxfr_misc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libexec/ypxfr/ypxfr_misc.c b/libexec/ypxfr/ypxfr_misc.c index c8fc0f9d7ba3..9e847e70d742 100644 --- a/libexec/ypxfr/ypxfr_misc.c +++ b/libexec/ypxfr/ypxfr_misc.c @@ -194,9 +194,9 @@ unsigned long ypxfr_get_order(char *domain, char *map, char *source, const int yplib) { if (yplib) { - unsigned long order; + unsigned int order; int res; - if ((res = yp_order(domain, map, (int *)&order))) { + if ((res = yp_order(domain, map, &order))) { switch (res) { case YPERR_DOMAIN: yp_errno = YPXFR_NODOM;