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
|
$NetBSD: patch-te__data.c,v 1.1 2012/12/27 06:13:20 dholland Exp $
- use const for string constants
- silence warning about initializer
--- te_data.c.orig 1993-08-05 22:29:33.000000000 +0000
+++ te_data.c
@@ -12,7 +12,7 @@
#include "te_defs.h"
/* error message text */
-char *errors[] =
+const char *errors[] =
{
"> not in iteration",
"Can't pop Q register",
@@ -77,8 +77,8 @@ char *errors[] =
/* the text buffer headers */
struct bh buffs[2] =
{
- { NULL, NULL, 0, 0, 0 },
- { NULL, NULL, 0, 0, 0 }
+ { NULL, NULL, 0, 0, 0, 0 },
+ { NULL, NULL, 0, 0, 0, 0 }
} ;
struct bh *pbuff = buffs;
|