Suppress an options line when no bit is on.
Reviewed by: hrs MFC after: 3 days
This commit is contained in:
parent
544bf7f165
commit
ad334ef082
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=196929
@ -71,6 +71,8 @@ gif_status(int s)
|
|||||||
ifr.ifr_data = (caddr_t)&opts;
|
ifr.ifr_data = (caddr_t)&opts;
|
||||||
if (ioctl(s, GIFGOPTS, &ifr) == -1)
|
if (ioctl(s, GIFGOPTS, &ifr) == -1)
|
||||||
return;
|
return;
|
||||||
|
if (opts == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
printf("\toptions=%d<", opts);
|
printf("\toptions=%d<", opts);
|
||||||
for (i=0; i < sizeof(gif_opts)/sizeof(gif_opts[0]); i++) {
|
for (i=0; i < sizeof(gif_opts)/sizeof(gif_opts[0]); i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user