diff options
author | das <das@FreeBSD.org> | 2004-02-16 10:03:44 +0000 |
---|---|---|
committer | das <das@FreeBSD.org> | 2004-02-16 10:03:44 +0000 |
commit | 8c6bf9351ee74f1bace588099a012f60d9dcfc41 (patch) | |
tree | d715444247c0dd451f2234813809690c67f2e81d | |
parent | d6261f9b0e9b101830abc724d31bd87c11108ba2 (diff) | |
download | FreeBSD-src-8c6bf9351ee74f1bace588099a012f60d9dcfc41.zip FreeBSD-src-8c6bf9351ee74f1bace588099a012f60d9dcfc41.tar.gz |
Don't pass a pointer to a 'long' to a function that expects an 'int *'.
Submitted by: Roop Nanuwa <roop@hqst.com>
PR: 62615
-rw-r--r-- | libexec/ypxfr/ypxfr_misc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/ypxfr/ypxfr_misc.c b/libexec/ypxfr/ypxfr_misc.c index c8fc0f9..9e847e7 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; |