summaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorDenis Vlasenko2006-11-27 16:59:15 +0000
committerDenis Vlasenko2006-11-27 16:59:15 +0000
commit097c324f59e00182c9a2ca9e7a8b2fe06a078c6c (patch)
tree4817bcd854907cb2cd905780e54ea24faf1c80c5 /networking
parentd9e15f206840219bb0f39c912a42fdcf8cbcaed6 (diff)
downloadbusybox-097c324f59e00182c9a2ca9e7a8b2fe06a078c6c.zip
busybox-097c324f59e00182c9a2ca9e7a8b2fe06a078c6c.tar.gz
fix remaining survivors of the return(a) cleanup
Diffstat (limited to 'networking')
-rw-r--r--networking/ifupdown.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/networking/ifupdown.c b/networking/ifupdown.c
index 5d140f1..76ff2a8 100644
--- a/networking/ifupdown.c
+++ b/networking/ifupdown.c
@@ -34,7 +34,7 @@
/* Forward declaration */
struct interface_defn_t;
-typedef int (execfn)(char *command);
+typedef int execfn(char *command);
struct method_t
{
@@ -111,17 +111,17 @@ static char *startup_PATH;
#ifdef CONFIG_FEATURE_IFUPDOWN_IP
-static unsigned int count_bits(unsigned int a)
+static unsigned count_bits(unsigned a)
{
- unsigned int result;
+ unsigned result;
result = (a & 0x55) + ((a >> 1) & 0x55);
result = (result & 0x33) + ((result >> 2) & 0x33);
- return ((result & 0x0F) + ((result >> 4) & 0x0F));
+ return (result & 0x0F) + ((result >> 4) & 0x0F);
}
static int count_netmask_bits(char *dotted_quad)
{
- unsigned int result, a, b, c, d;
+ unsigned result, a, b, c, d;
/* Found a netmask... Check if it is dotted quad */
if (sscanf(dotted_quad, "%u.%u.%u.%u", &a, &b, &c, &d) != 4)
return -1;