[BusyBox] gcc problem in editor/sed.c
Steven Scholz
steven.scholz at imc-berlin.de
Thu Oct 9 07:02:44 UTC 2003
Hi there,
editor/sed.c does not compile using (a Cross Tool Chain based on) gcc 2.95.4:
editors/sed.c: In function `add_cmd':
editors/sed.c:474: parse error before `int'
editors/sed.c:475: `temp' undeclared (first use in this function)
editors/sed.c:475: (Each undeclared identifier is reported only once
editors/sed.c:475: for each function it appears in.)
This trival patch fixes that:
--- editors/sed.c 4 Oct 2003 05:27:56 -0000 1.154
+++ editors/sed.c 9 Oct 2003 07:08:44 -0000
@@ -457,6 +457,7 @@
{
static char *add_cmd_line=NULL;
sed_cmd_t *sed_cmd;
+ int temp;
/* Append this line to any unfinished line from last time. */
if(add_cmd_line) {
@@ -471,7 +472,7 @@
} else add_cmd_line=NULL;
/* If this line ends with backslash, request next line. */
- int temp=strlen(cmdstr);
+ temp=strlen(cmdstr);
if(temp && cmdstr[temp-1]=='\\') {
if(!add_cmd_line) add_cmd_line=strdup(cmdstr);
add_cmd_line[temp-1]=0;
Thanks,
--
Steven Scholz
imc Measurement & Control imc Meßsysteme GmbH
Voltastr. 5 Voltastr. 5
13355 Berlin 13355 Berlin
Germany Deutschland
fon: +49 30 467090-0 Tel: 030 / 467090-0
fax: +49 30 4631576 fax: 030 / 4631576
More information about the busybox
mailing list