Browse Source

Plan 9 from Bell Labs 2009-09-08

David du Colombier 14 years ago
parent
commit
a6e07b8bb4
4 changed files with 10 additions and 4 deletions
  1. 5 0
      sys/games/lib/fortunes
  2. 2 0
      sys/include/mp.h
  3. 2 2
      sys/src/cmd/bc.y
  4. 1 2
      sys/src/libmp/port/crttest.c

+ 5 - 0
sys/games/lib/fortunes

@@ -4256,3 +4256,8 @@ slashdot: the consensus of the ill-informed  - brucee
 "People aren't wearing enough hats" - Truism from brucee
 to kill the postman that delivered this email to you press here
 A Man is rich in proportion to the number of things he can afford to let alone. -Thoreau
+Just getting something to happen might be training, but it sure isn't education. -Brian L Stuart
+This page has an unspecified potential security flaw.  Would you like to continue?
+Comeau C/C++ 4.3.10.1 beta:  Now in our 22nd year!
+size: q.out not an a.out
+Sharing your DNA hasn't been this exciting since the good old days. - Genealogy.com

+ 2 - 0
sys/include/mp.h

@@ -125,6 +125,8 @@ typedef struct CRTpre	CRTpre;		/* precomputed values for converting */
 					/*  twixt residues and mpint */
 typedef struct CRTres	CRTres;		/* residue form of an mpint */
 
+#pragma incomplete CRTpre
+
 struct CRTres
 {
 	int	n;		/* number of residues */

+ 2 - 2
sys/src/cmd/bc.y

@@ -870,8 +870,8 @@ void
 yyerror(char *s, ...)
 {
 	if(ifile > sargc)
-		ss = "teletype";
-	Bprint(&bstdout, "c[%s on line %d, %s]pc\n", s, ln+1, ss);
+		ss = "stdin";
+	Bprint(&bstdout, "c[%s:%d %s]pc\n", ss, ln+1, s);
 	Bflush(&bstdout);
 	cp = cary;
 	crs = rcrs;

+ 1 - 2
sys/src/libmp/port/crttest.c

@@ -8,7 +8,6 @@ testcrt(mpint **p)
 	CRTpre *crt;
 	CRTres *res;
 	mpint *m, *x, *y;
-	int i;
 
 	fmtinstall('B', mpfmt);
 
@@ -49,6 +48,6 @@ main(void)
 		mpfree(p[0]);
 		mpfree(p[1]);
 	}
-	print("%d secs with more\n", time(0)-start);
+	print("%ld secs with more\n", time(0)-start);
 	exits(0);
 }