918e692115
Patch extensive use of malloc and alloca without <stdlib.h> and some other stuff that showed up in the build log. Still crashes in temacs but it's getting much farther.
23 lines
517 B
Text
23 lines
517 B
Text
$NetBSD: patch-lib-src_yow_c,v 1.1 2011/12/24 17:07:07 dholland Exp $
|
|
|
|
- use time() correctly
|
|
|
|
--- lib-src/yow.c~ 1994-06-07 15:18:54.000000000 +0000
|
|
+++ lib-src/yow.c
|
|
@@ -9,6 +9,7 @@
|
|
|
|
#include <stdio.h>
|
|
#include <ctype.h>
|
|
+#include <time.h>
|
|
#include <../src/paths.h> /* For PATH_DATA. */
|
|
|
|
#define BUFSIZE 80
|
|
@@ -53,7 +54,7 @@ main (argc, argv)
|
|
}
|
|
|
|
/* initialize random seed */
|
|
- srand((int) (getpid() + time((long *) 0)));
|
|
+ srand((int) (getpid() + time(NULL)));
|
|
|
|
setup_yow(fp);
|
|
yow(fp);
|