fwcontrol patch

From: KIYOHARA Takashi <kiyohara_at_kk.iij4u.or.jp>
Date: Mon, 30 May 2005 12:10:56 +0900 (JST)
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


--- fwcontrol.c.orig	2005-05-30 11:56:26.000000000 +0900
+++ fwcontrol.c	2005-05-30 11:56:38.000000000 +0900
_at__at_ -608,6 +608,7 _at__at_
 {
 	if (sysctlbyname(name, NULL, NULL, &val, sizeof(int)) < 0)
 		err(1, "sysctl %s failed.", name);
+	return (0);
 }
 
 int
_at__at_ -655,8 +656,8 _at__at_
 			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]));
Received on Mon May 30 2005 - 01:11:00 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:35 UTC