patch-2.2.17 linux/net/bridge/br.c
Next file: linux/net/core/dev.c
Previous file: linux/net/appletalk/ddp.c
Back to the patch index
Back to the overall index
- Lines: 36
- Date:
Mon Sep 4 18:39:29 2000
- Orig file:
v2.2.16/net/bridge/br.c
- Orig date:
Mon Sep 4 18:37:24 2000
diff -u --recursive --new-file v2.2.16/net/bridge/br.c linux/net/bridge/br.c
@@ -2258,7 +2258,7 @@
break;
case BRCMD_IF_ENABLE:
bcf.arg1 = br_find_port(bcf.arg1);
- if (bcf.arg1 < 0)
+ if ((signed)bcf.arg1 < 0)
return(bcf.arg1);
case BRCMD_PORT_ENABLE:
if (port_info[bcf.arg1].dev == 0)
@@ -2276,7 +2276,7 @@
break;
case BRCMD_IF_DISABLE:
bcf.arg1 = br_find_port(bcf.arg1);
- if (bcf.arg1 < 0)
+ if ((signed)bcf.arg1 < 0)
return(bcf.arg1);
case BRCMD_PORT_DISABLE:
if (port_info[bcf.arg1].dev == 0)
@@ -2299,7 +2299,7 @@
break;
case BRCMD_SET_IF_PRIORITY:
bcf.arg1 = br_find_port(bcf.arg1);
- if (bcf.arg1 < 0)
+ if ((signed)bcf.arg1 < 0)
return(bcf.arg1);
case BRCMD_SET_PORT_PRIORITY:
if((port_info[bcf.arg1].dev == 0)
@@ -2310,7 +2310,7 @@
break;
case BRCMD_SET_IF_PATH_COST:
bcf.arg1 = br_find_port(bcf.arg1);
- if (bcf.arg1 < 0)
+ if ((signed)bcf.arg1 < 0)
return(bcf.arg1);
case BRCMD_SET_PATH_COST:
if (port_info[bcf.arg1].dev == 0)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)