fwcontrol patch
From: KIYOHARA Takashi (kiyohara_at_kk.iij4u.or.jp)
Date: 05/30/05
- Previous message: Vladimir Chukharev: "Re: Newest loader from CVS not working"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 30 May 2005 12:10:56 +0900 (JST) To: freebsd-current@freebsd.org
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
@@ -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]));
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
- Previous message: Vladimir Chukharev: "Re: Newest loader from CVS not working"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|