]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - trek/rest.c
buffnum is shared between subs.c and fancy.c
[bsdgames-darwin.git] / trek / rest.c
index 2077de8072bbfac2f8ea2056d8114842a7511d4e..1cac69c7b7899732c50ef3a7d3d9d0613d57495b 100644 (file)
@@ -1,4 +1,4 @@
-/*     $NetBSD: rest.c,v 1.6 2003/08/07 09:37:53 agc Exp $     */
+/*     $NetBSD: rest.c,v 1.9 2009/05/24 21:44:56 dholland Exp $        */
 
 /*
  * Copyright (c) 1980, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)rest.c     8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: rest.c,v 1.6 2003/08/07 09:37:53 agc Exp $");
+__RCSID("$NetBSD: rest.c,v 1.9 2009/05/24 21:44:56 dholland Exp $");
 #endif
 #endif /* not lint */
 
@@ -58,8 +58,7 @@ __RCSID("$NetBSD: rest.c,v 1.6 2003/08/07 09:37:53 agc Exp $");
 
 /*ARGSUSED*/
 void
-rest(v)
-       int v __attribute__((__unused__));
+rest(int v __unused)
 {
        double          t;
        int             percent;
@@ -69,8 +68,7 @@ rest(v)
        if (t <= 0.0)
                return;
        percent = 100 * t / Now.time + 0.5;
-       if (percent >= 70)
-       {
+       if (percent >= 70) {
                printf("Spock: That would take %d%% of our remaining time.\n",
                        percent);
                if (!getynpar("Are you really certain that is wise"))