summaryrefslogtreecommitdiffstats
path: root/libexec/ypxfr/ypxfr_misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/ypxfr/ypxfr_misc.c')
-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