From 8c6bf9351ee74f1bace588099a012f60d9dcfc41 Mon Sep 17 00:00:00 2001 From: das 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;