pkgsrc/net/yale-tftpd/patches/patch-af
heinz d7493ed02e Added compatibility fixes for NetBSD/FreeBSD/Linux/Solaris provided by
Yakovetsky Vladimir in PR pkg/36942.
Shut up warning by pkglint (PLIST).
Introduced PKGMANDIR in software Makefile.
2007-10-02 20:23:07 +00:00

37 lines
879 B
Text

$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;