diff options
author | Kris Kennaway <kris@FreeBSD.org> | 2002-10-20 23:14:56 +0000 |
---|---|---|
committer | Kris Kennaway <kris@FreeBSD.org> | 2002-10-20 23:14:56 +0000 |
commit | 94474afc669ea3603e271c0b24db1518f5e345b2 (patch) | |
tree | 6116e182491e536d8ffc6410181b4675ae90e05d /misc/mshell/files/patch-ad | |
parent | makeztxt is a simple command line program that takes a plain ASCII text file (diff) |
Fix build on -current (remove conflicting prototype for strsave() and
include correct headers)
Notes
Notes:
svn path=/head/; revision=68448
Diffstat (limited to 'misc/mshell/files/patch-ad')
-rw-r--r-- | misc/mshell/files/patch-ad | 119 |
1 files changed, 47 insertions, 72 deletions
diff --git a/misc/mshell/files/patch-ad b/misc/mshell/files/patch-ad index de74911fbf3a..35815355ded8 100644 --- a/misc/mshell/files/patch-ad +++ b/misc/mshell/files/patch-ad @@ -1,72 +1,47 @@ -*** mshell.c.orig Sun Sep 19 11:00:53 1999 ---- mshell.c Sun Sep 19 11:09:05 1999 -*************** -*** 26,33 **** - exec_string [DESCLEN], - *args [MAXARGS], - *menu_array [LINES], -! tmpword [WORDLEN], -! *malloc(); - - int i, - idx, ---- 26,32 ---- - exec_string [DESCLEN], - *args [MAXARGS], - *menu_array [LINES], -! tmpword [WORDLEN]; - - int i, - idx, -*************** -*** 35,42 **** - firsttime = TRUE, - dontdisplay = FALSE, - unix_flag, -! menu_flag, -! exit(); - - static jmp_buf topenv; - static int topenvset; ---- 34,40 ---- - firsttime = TRUE, - dontdisplay = FALSE, - unix_flag, -! menu_flag; - - static jmp_buf topenv; - static int topenvset; -*************** -*** 49,55 **** - signal (SIGPIPE, SIG_IGN); /* ignore dead pipes */ - log("enter", m); - -! while TRUE { - - if (!topenvset) { - topenvset = TRUE; ---- 47,53 ---- - signal (SIGPIPE, SIG_IGN); /* ignore dead pipes */ - log("enter", m); - -! while (TRUE) { - - if (!topenvset) { - topenvset = TRUE; -*************** -*** 142,148 **** - - if ( strcmp (action_string, NULLSTR) == 0 ) { - invalid_option = TRUE; -! printf ("\tNo such help option name as: %s\!\!\n", opt2); - } - else { - tmpword[0] = EOS; ---- 140,146 ---- - - if ( strcmp (action_string, NULLSTR) == 0 ) { - invalid_option = TRUE; -! printf ("\tNo such help option name as: %s!!\n", opt2); - } - else { - tmpword[0] = EOS; +--- 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; |