blob: 571066329e9f8aa3534199ecbc37ff2103577251 (
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
34
35
36
37
|
$NetBSD: patch-af,v 1.3 2007/10/02 20:23:08 heinz Exp $
--- classes/config.c.orig 1994-10-05 06:18:21.000000000 +0100
+++ classes/config.c
@@ -1,8 +1,12 @@
#define CLASS_Config_PRIVATE
#include "config.h"
+#include <stdlib.h>
#include <strings.h>
#include <ctype.h>
+#ifdef HAVE_STRERROR
+#include <string.h>
+#endif
#define DFLT_NFIELDS 10
#define START_FIELD(S) \
@@ -35,10 +39,6 @@ static Config config_expand();
static unsigned char* config_copy();
static unsigned char* get_quoted_string();
-extern char* malloc();
-extern char* realloc();
-extern char* strdup();
-
static int dflt_options = CFG_OPT_UCASE;
Config
@@ -130,7 +130,7 @@ char* buf;
switch (type) {
case BRK_QUOTE:
START_FIELD(to);
- fr = get_quoted_string (*fr, fr+1, &to);
+ fr = get_quoted_string (*fr, fr+1, (char**)&to);
fr++; /* skip terminating quote */
break;
|