Module Name:    src
Committed By:   cegger
Date:           Sat Jul 31 07:05:32 UTC 2010

Modified Files:
        src/usr.sbin/fwctl: eui64.c

Log Message:
remove useless brackets. From kiyohara@


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/usr.sbin/fwctl/eui64.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/fwctl/eui64.c
diff -u src/usr.sbin/fwctl/eui64.c:1.2 src/usr.sbin/fwctl/eui64.c:1.3
--- src/usr.sbin/fwctl/eui64.c:1.2	Wed Apr 15 06:02:37 2009
+++ src/usr.sbin/fwctl/eui64.c	Sat Jul 31 07:05:32 2010
@@ -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;
 }

Reply via email to