diff options
author | ume <ume@FreeBSD.org> | 2009-09-07 15:22:54 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2009-09-07 15:22:54 +0000 |
commit | e894c7001952dd8d859ba281a78077d40459f716 (patch) | |
tree | c1f10d4fd5cb3907bf47e230a0717c331dc07df6 /sbin | |
parent | 34877df084d628788fc532ae20091114a3dcdfc1 (diff) | |
download | FreeBSD-src-e894c7001952dd8d859ba281a78077d40459f716.zip FreeBSD-src-e894c7001952dd8d859ba281a78077d40459f716.tar.gz |
Suppress an options line when no bit is on.
Reviewed by: hrs
MFC after: 3 days
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/ifconfig/ifgif.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sbin/ifconfig/ifgif.c b/sbin/ifconfig/ifgif.c index f9f3524..aed6382 100644 --- a/sbin/ifconfig/ifgif.c +++ b/sbin/ifconfig/ifgif.c @@ -71,6 +71,8 @@ gif_status(int s) ifr.ifr_data = (caddr_t)&opts; if (ioctl(s, GIFGOPTS, &ifr) == -1) return; + if (opts == 0) + return; printf("\toptions=%d<", opts); for (i=0; i < sizeof(gif_opts)/sizeof(gif_opts[0]); i++) { |