blob: c86d0854dddedba6d45692befc2b4d5d38dd1642 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
$NetBSD: patch-ab,v 1.2 2007/05/15 13:28:22 obache Exp $
--- greed.c.orig 2002-07-30 22:03:43.000000000 +0000
+++ greed.c
@@ -68,8 +68,10 @@ static char *version = "Greed v" RELEASE
#include <sys/types.h>
#include <io.h>
-#include <stdlib.h>
#endif
+#include <stdlib.h>
+#include <string.h>
+#include <time.h>
#ifdef NOTBSD
#ifndef crmode
@@ -200,7 +202,6 @@ int argc;
char *argv[];
{
register val = 1;
- extern long time();
int attribs[9];
#ifdef A_COLOR
char *colors;
@@ -276,7 +277,7 @@ char *argv[];
init_pair(cp-colors+1,
strchr(cnames, tolower(*cp))-cnames,
COLOR_BLACK);
- attribs[cp-colors]=COLOR_PAIR(cp-colors+1);
+ attribs[cp-colors]=COLOR_PAIR((cp-colors+1));
if (isupper(*cp))
attribs[cp-colors] |= A_BOLD;
}
|