summaryrefslogtreecommitdiff
path: root/x11/xp/patches/patch-ac
blob: 138d3bef01796f76b09c5032dbf9ebd6b9ea0cd7 (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
38
39
40
41
42
43
44
45
46
$NetBSD: patch-ac,v 1.2 2006/08/22 20:20:20 jdc Exp $

--- xp.c.orig	2005-12-04 00:57:12.000000000 +0000
+++ xp.c
@@ -32,6 +32,7 @@
  */
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <errno.h>
 #include <signal.h>
 #include <sys/wait.h>
@@ -434,7 +435,6 @@
     int size;
 
 {
-    extern int errno;
     extern char* uerror();
     extern char* readfile();
     char *mess = NULL;
@@ -649,8 +649,6 @@
     filedata = readfile(argc > 1 ? argv[1] : "-", &size);
 
     if (argc == 2 && !filedata) {
-	extern int errno;
-
 	fprintf(stderr,"%s: %s: %s\n", argv[0], argv[1], uerror());
 	exit (1);
     }
@@ -1677,6 +1675,8 @@
  *
  */
 
+static void shellr();
+
 /*ARGSUSED*/
 static void
 Cmnd(w, event,params,num_params)
@@ -1688,7 +1688,6 @@
 
     char *linesearch();
     char *lastlinesearch();
-    static void shellr();
     String userdata;
     textextra *te;
     static char cmndbuf[BUFSIZ];