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
a94707138b
commit
4f70638ec2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=125868
@ -194,9 +194,9 @@ unsigned long
|
|||||||
ypxfr_get_order(char *domain, char *map, char *source, const int yplib)
|
ypxfr_get_order(char *domain, char *map, char *source, const int yplib)
|
||||||
{
|
{
|
||||||
if (yplib) {
|
if (yplib) {
|
||||||
unsigned long order;
|
unsigned int order;
|
||||||
int res;
|
int res;
|
||||||
if ((res = yp_order(domain, map, (int *)&order))) {
|
if ((res = yp_order(domain, map, &order))) {
|
||||||
switch (res) {
|
switch (res) {
|
||||||
case YPERR_DOMAIN:
|
case YPERR_DOMAIN:
|
||||||
yp_errno = YPXFR_NODOM;
|
yp_errno = YPXFR_NODOM;
|
||||||
|
Loading…
Reference in New Issue
Block a user