Changeset: 09f6a5836a3a for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/09f6a5836a3a
Modified Files:
tools/mserver/mserver5.c
Branch: Sep2022
Log Message:
Move comment.
diffs (22 lines):
diff --git a/tools/mserver/mserver5.c b/tools/mserver/mserver5.c
--- a/tools/mserver/mserver5.c
+++ b/tools/mserver/mserver5.c
@@ -282,7 +282,6 @@ wmain(int argc, wchar_t **argv)
main(int argc, char **av)
#endif
{
- /* make sure stdout is line buffered, even when not to a terminal */
#ifdef _MSC_VER
char **av = malloc((argc + 1) * sizeof(char *));
if (av == NULL) {
@@ -297,7 +296,9 @@ main(int argc, char **av)
}
av[argc] = NULL;
#else
- /* on Windows, _IOLBF does the same as _IOFBF, i.e. full buffering */
+ /* make sure stdout is line buffered, even when not to a terminal;
+ * on Windows, _IOLBF does the same as _IOFBF, i.e. full
+ * buffering */
setvbuf(stdout, NULL, _IOLBF, BUFSIZ);
#endif
char *prog = *av;
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]