summaryrefslogtreecommitdiff
path: root/misc/mshell/files/patch-ad
blob: 35815355ded80709517b8a5f7fd915f94e5e3b2a (plain) (blame)
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
47
--- mshell.c.orig	Sun Oct 20 16:13:17 2002
+++ mshell.c	Sun Oct 20 16:13:45 2002
@@ -1,5 +1,6 @@
 #include "mshell.h"
 #include <setjmp.h>
+#include <stdlib.h>
 char * index ();
 
 
@@ -26,8 +27,7 @@
 	     exec_string   [DESCLEN],
 	     *args         [MAXARGS],
 	     *menu_array   [LINES],
-	     tmpword       [WORDLEN],
-	     *malloc();
+	     tmpword       [WORDLEN];
 
 	int  i, 
 	     idx,
@@ -35,8 +35,7 @@
 	     firsttime = TRUE,
 	     dontdisplay = FALSE,
 	     unix_flag,
-	     menu_flag,
-	     exit();
+	     menu_flag;
 
 	static jmp_buf topenv;
 	static int topenvset;
@@ -49,7 +48,7 @@
 	signal (SIGPIPE, SIG_IGN);	/* ignore dead pipes */
 	log("enter", m);
 
-	while TRUE {
+	while (TRUE) {
 
 		if (!topenvset) {
 			topenvset = TRUE;
@@ -142,7 +141,7 @@
 
 			if ( strcmp (action_string, NULLSTR) == 0 ) {
 				invalid_option = TRUE;
-				printf ("\tNo such help option name as: %s\!\!\n", opt2);
+				printf ("\tNo such help option name as: %s!!\n", opt2);
 			}
 			else {
 				tmpword[0] = EOS;