fwcontrol patch

KIYOHARA Takashi kiyohara at kk.iij4u.or.jp
Sun May 29 20:11:00 PDT 2005


Hi! all.


I request to change for usr.sbin/fwcontrol/fwcontrol.c.

  1. Return value of sysctl_set_int() is int. But no return.
  2. indent miss in main().


Thanks
--
kiyohara

-------------- next part --------------
--- fwcontrol.c.orig	2005-05-30 11:56:26.000000000 +0900
+++ fwcontrol.c	2005-05-30 11:56:38.000000000 +0900
@@ -608,6 +608,7 @@
 {
 	if (sysctlbyname(name, NULL, NULL, &val, sizeof(int)) < 0)
 		err(1, "sysctl %s failed.", name);
+	return (0);
 }
 
 int
@@ -655,8 +656,8 @@
 			show_crom(crom_buf);
 			break;
 		case 'm':
-		       if (eui64_hostton(optarg, &target) != 0 &&
-			   eui64_aton(optarg, &target) != 0)
+			if (eui64_hostton(optarg, &target) != 0 &&
+			    eui64_aton(optarg, &target) != 0)
 				errx(1, "invalid target: %s", optarg);
 			eui.hi = ntohl(*(u_int32_t*)&(target.octet[0]));
 			eui.lo = ntohl(*(u_int32_t*)&(target.octet[4]));


More information about the freebsd-current mailing list