[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r3810 - GNUnet/src/setup/text
From: |
grothoff |
Subject: |
[GNUnet-SVN] r3810 - GNUnet/src/setup/text |
Date: |
Tue, 21 Nov 2006 21:14:00 -0800 (PST) |
Author: grothoff
Date: 2006-11-21 21:13:58 -0800 (Tue, 21 Nov 2006)
New Revision: 3810
Modified:
GNUnet/src/setup/text/conf.c
Log:
flush
Modified: GNUnet/src/setup/text/conf.c
===================================================================
--- GNUnet/src/setup/text/conf.c 2006-11-22 05:10:36 UTC (rev 3809)
+++ GNUnet/src/setup/text/conf.c 2006-11-22 05:13:58 UTC (rev 3810)
@@ -62,6 +62,7 @@
va_start(va, format);
vfprintf(stdout, format, va);
va_end(va);
+ fflush(stdout);
}
static char * getValueAsString(GNS_Type type,
@@ -229,6 +230,7 @@
if (buf[i] != '\n') {
if (i < 1023) {
printf("%c", buf[i]);
+ fflush(stdout);
i++;
}
continue;
@@ -307,6 +309,7 @@
if (buf[i] != '\n') {
if (i < 1023) {
printf("%c", buf[i]);
+ fflush(stdout);
i++;
}
continue;
@@ -325,6 +328,7 @@
}
i = 0;
printf(_("\nInvalid entry, try again (use '?' for help): "));
+ fflush(stdout);
}
break;
case GNS_UInt64:
@@ -357,6 +361,7 @@
if (buf[i] != '\n') {
if (i < 1023) {
printf("%c", buf[i]);
+ fflush(stdout);
i++;
}
continue;
@@ -378,6 +383,7 @@
}
i = 0;
printf(_("\nInvalid entry, try again (use '?' for help): "));
+ fflush(stdout);
}
break;
default:
@@ -560,10 +566,12 @@
}
printf("\n");
printf(_("Save configuration? Answer 'y' for yes, 'n' for no, 'r' to
repeat configuration. "));
+ fflush(stdout);
do {
c = rd();
} while ( (c != 'y') && (c != 'n') && (c != 'r') );
printf("%c\n", c);
+ fflush(stdout);
}
if (c == 'y') {
ret = GC_write_configuration(cfg,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r3810 - GNUnet/src/setup/text,
grothoff <=