Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/fwctl remove useless brackets. From kiyohara@
details: https://anonhg.NetBSD.org/src/rev/07927ad9750e
branches: trunk
changeset: 756745:07927ad9750e
user: cegger <cegger%NetBSD.org@localhost>
date: Sat Jul 31 07:05:32 2010 +0000
description:
remove useless brackets. From kiyohara@
diffstat:
usr.sbin/fwctl/eui64.c | 28 ++++++++++++++--------------
1 files changed, 14 insertions(+), 14 deletions(-)
diffs (107 lines):
diff -r 22c1fddb396a -r 07927ad9750e usr.sbin/fwctl/eui64.c
--- a/usr.sbin/fwctl/eui64.c Sat Jul 31 03:44:33 2010 +0000
+++ b/usr.sbin/fwctl/eui64.c Sat Jul 31 07:05:32 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: eui64.c,v 1.2 2009/04/15 06:02:37 lukem Exp $ */
+/* $NetBSD: eui64.c,v 1.3 2010/07/31 07:05:32 cegger Exp $ */
/*
* Copyright 2004 The Aerospace Corporation. All rights reserved.
*
@@ -108,7 +108,7 @@
linehead = strdup(l);
if (linehead == NULL)
- return (-1);
+ return -1;
line = linehead;
/* Find and parse the EUI64 */
@@ -139,11 +139,11 @@
goto bad;
}
- return (0);
+ return 0;
bad:
free(linehead);
- return (-1);
+ return -1;
}
/*
@@ -187,7 +187,7 @@
goto good;
}
- return (-1);
+ return -1;
good:
e->octet[0]=o0;
@@ -199,7 +199,7 @@
e->octet[6]=o6;
e->octet[7]=o7;
- return (0);
+ return 0;
}
/*
@@ -214,8 +214,8 @@
id->octet[0], id->octet[1], id->octet[2], id->octet[3],
id->octet[4], id->octet[5], id->octet[6], id->octet[7]);
if (i < 23 || i >= (int)len)
- return (-1);
- return (0);
+ return -1;
+ return 0;
}
/*
@@ -235,7 +235,7 @@
char *yp_domain;
#endif
if ((fp = fopen(_PATH_EUI64, "r")) == NULL)
- return (1);
+ return 1;
while (fgets(buf,BUFSIZ,fp)) {
if (buf[0] == '#')
@@ -261,12 +261,12 @@
/* We have a match */
strcpy(hostname, local_host);
fclose(fp);
- return(0);
+ return 0;
}
}
}
fclose(fp);
- return (1);
+ return 1;
}
/*
@@ -285,7 +285,7 @@
char *yp_domain;
#endif
if ((fp = fopen(_PATH_EUI64, "r")) == NULL)
- return (1);
+ return 1;
while (fgets(buf,BUFSIZ,fp)) {
if (buf[0] == '#')
@@ -309,10 +309,10 @@
/* We have a match */
bcopy(&local_eui64, id, sizeof(struct eui64));
fclose(fp);
- return(0);
+ return 0;
}
}
}
fclose(fp);
- return (1);
+ return 1;
}
Home |
Main Index |
Thread Index |
Old Index