]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - battlestar/command6.c
cgram: rewrite completely, fixing bugs and style
[bsdgames-darwin.git] / battlestar / command6.c
index 785d7dfd5eda8de709a10648e129568692812bc6..0c6c864155410cf2f16fcea7a32b7cc45834611a 100644 (file)
@@ -1,4 +1,4 @@
-/*     $NetBSD: command6.c,v 1.6 2010/04/02 15:35:32 christos Exp $    */
+/*     $NetBSD: command6.c,v 1.8 2010/04/24 00:38:30 dholland Exp $    */
 
 /*
  * Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)com6.c     8.2 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: command6.c,v 1.6 2010/04/02 15:35:32 christos Exp $");
+__RCSID("$NetBSD: command6.c,v 1.8 2010/04/24 00:38:30 dholland Exp $");
 #endif
 #endif                         /* not lint */
 
@@ -127,7 +127,7 @@ post(int ch)
        sigprocmask(SIG_BLOCK, &isigset, &osigset);
        tv = time(NULL);
        if (score_fp != NULL) {
-               fprintf(score_fp, "%24.24s  %8s  %c%20s", ctime(&t), username, 
+               fprintf(score_fp, "%24.24s  %8s  %c%20s", ctime(&tv), username, 
                    ch, rate());
                if (wiz)
                        fprintf(score_fp, "   wizard\n");
@@ -137,6 +137,7 @@ post(int ch)
                        else
                                fprintf(score_fp, "\n");
        }
+       fflush(score_fp);
        sigprocmask(SIG_SETMASK, &osigset, (sigset_t *) 0);
 }