Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2000:
[Freeciv-Dev] setvbuf on stdout instead of using fflush
Home

[Freeciv-Dev] setvbuf on stdout instead of using fflush

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] setvbuf on stdout instead of using fflush
From: Dan Gohman <gohmandj@xxxxxxxxxxx>
Date: Tue, 9 May 2000 15:54:02 -0500

I was looking through server/console.c and noticed that we're calling
fflush(stdout) after every output. We could accomplish the same thing by
turning off the buffering on stdout with setvbuf().

Here's a small patch that changes this.

-Dan

-- 
Dan Gohman
gohmandj@xxxxxxxxxxx

Attachment: ff.diff
Description: patch


[Prev in Thread] Current Thread [Next in Thread]