X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=drivers%2Fatm%2Fnicstar.c;h=bd09045948054ab836fe3b14f9f0384a85b08f86;hb=7f3af60e5a444b287d740a84998a8f480645dadf;hp=632ede552761cb92c7276b16542e998a5f1d0db5;hpb=946b92437e550d6ed80213bf54a1f383e141aede;p=powerpc.git diff --git a/drivers/atm/nicstar.c b/drivers/atm/nicstar.c index 632ede5527..bd09045948 100644 --- a/drivers/atm/nicstar.c +++ b/drivers/atm/nicstar.c @@ -2759,7 +2759,7 @@ static int ns_ioctl(struct atm_dev *dev, unsigned int cmd, void __user *arg) { ns_dev *card; pool_levels pl; - int btype; + long btype; unsigned long flags; card = dev->dev_data; @@ -2859,7 +2859,7 @@ static int ns_ioctl(struct atm_dev *dev, unsigned int cmd, void __user *arg) case NS_ADJBUFLEV: if (!capable(CAP_NET_ADMIN)) return -EPERM; - btype = (int) arg; /* an int is the same size as a pointer */ + btype = (long) arg; /* a long is the same size as a pointer or bigger */ switch (btype) { case NS_BUFTYPE_SMALL: