Don't pass a pointer to a 'long' to a function that expects an 'int *'.

Submitted by:	Roop Nanuwa <roop@hqst.com>
PR:		62615
This commit is contained in:
das 2004-02-16 10:03:44 +00:00
parent d6261f9b0e
commit 8c6bf9351e

View File

@ -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;