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:
parent
d6261f9b0e
commit
8c6bf9351e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user