summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2004-02-16 10:03:44 +0000
committerdas <das@FreeBSD.org>2004-02-16 10:03:44 +0000
commit8c6bf9351ee74f1bace588099a012f60d9dcfc41 (patch)
treed715444247c0dd451f2234813809690c67f2e81d /libexec
parentd6261f9b0e9b101830abc724d31bd87c11108ba2 (diff)
downloadFreeBSD-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
Diffstat (limited to 'libexec')
-rw-r--r--libexec/ypxfr/ypxfr_misc.c4
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;
OpenPOWER on IntegriCloud