Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/wiconfig It is missing fflush() when scanning the n...



details:   https://anonhg.NetBSD.org/src/rev/396ac12ad34e
branches:  trunk
changeset: 521343:396ac12ad34e
user:      ichiro <ichiro%NetBSD.org@localhost>
date:      Mon Jan 28 22:07:30 2002 +0000

description:
It is missing fflush() when scanning the network and no avaible AP.

diffstat:

 usr.sbin/wiconfig/wiconfig.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 67e1aa98bf08 -r 396ac12ad34e usr.sbin/wiconfig/wiconfig.c
--- a/usr.sbin/wiconfig/wiconfig.c      Mon Jan 28 21:52:49 2002 +0000
+++ b/usr.sbin/wiconfig/wiconfig.c      Mon Jan 28 22:07:30 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wiconfig.c,v 1.18 2002/01/25 17:17:21 christos Exp $   */
+/*     $NetBSD: wiconfig.c,v 1.19 2002/01/28 22:07:30 ichiro Exp $     */
 /*
  * Copyright (c) 1997, 1998, 1999
  *     Bill Paul <wpaul%ctr.columbia.edu@localhost>.  All rights reserved.
@@ -69,7 +69,7 @@
 static const char copyright[] = "@(#) Copyright (c) 1997, 1998, 1999\
        Bill Paul. All rights reserved.";
 static const char rcsid[] =
-       "@(#) $Id: wiconfig.c,v 1.18 2002/01/25 17:17:21 christos Exp $";
+       "@(#) $Id: wiconfig.c,v 1.19 2002/01/28 22:07:30 ichiro Exp $";
 #endif
 
 struct wi_table {
@@ -191,7 +191,7 @@
        wreq.wi_len = WI_MAX_DATALEN;
 
        /* we have to do this ourself as opposed to
-        * using setval, because we cannot bail if
+        * using getval, because we cannot bail if
         * the ioctl fails
         */
        memset((char *)&ifr, 0, sizeof(ifr));
@@ -203,7 +203,7 @@
        while (ioctl(s, SIOCGWAVELAN, &ifr) == -1) {
                retries--;
                if (retries >= 0) {
-                       printf(".");
+                       printf("."); fflush(stdout);
                        sleep(1);
                } else
                        break;



Home | Main Index | Thread Index | Old Index