PERFORCE change 141610 for review

Andrew Thompson thompsa at FreeBSD.org
Wed May 14 22:43:50 UTC 2008


http://perforce.freebsd.org/chv.cgi?CH=141610

Change 141610 by thompsa at thompsa_burger on 2008/05/14 22:43:25

	Always flush each line to stdout so I can use it for evil ways in my
	x11 wm.

Affected files ...

.. //depot/projects/vap/tools/tools/net80211/wlanwatch/wlanwatch.c#9 edit

Differences ...

==== //depot/projects/vap/tools/tools/net80211/wlanwatch/wlanwatch.c#9 (text+ko) ====

@@ -272,7 +272,6 @@
 			cp += SA_SIZE(sa);
 		}
 	putchar('\n');
-	fflush(stdout);
 }
 
 static const char *
@@ -317,6 +316,7 @@
 		}
 		bprintf(stdout, ifm->ifm_flags, ifnetflags);
 		pmsg_addrs((char *)(ifm + 1), ifm->ifm_addrs);
+		fflush(stdout);
 		break;
 	case RTM_IFANNOUNCE:
 		ifan = (struct if_announcemsghdr *)rtm;
@@ -334,6 +334,7 @@
 			break;
 		}
 		printf("\n");
+		fflush(stdout);
 		break;
 	case RTM_IEEE80211:
 #define	V(type)	((struct type *)(&ifan[1]))
@@ -449,6 +450,7 @@
 			break;
 		}
 		printf("\n");
+		fflush(stdout);
 		break;
 #undef V
 	}


More information about the p4-projects mailing list