[BusyBox-cvs] busybox/editors sed.c,1.154,1.155

Glenn McGrath bug1 at busybox.net
Thu Oct 9 07:23:03 UTC 2003


Update of /var/cvs/busybox/editors
In directory winder:/tmp/cvs-serv7021/editors

Modified Files:
	sed.c 
Log Message:
Comaptability with gcc-2.95


Index: sed.c
===================================================================
RCS file: /var/cvs/busybox/editors/sed.c,v
retrieving revision 1.154
retrieving revision 1.155
diff -u -d -r1.154 -r1.155
--- sed.c	4 Oct 2003 05:27:56 -0000	1.154
+++ sed.c	9 Oct 2003 07:22:59 -0000	1.155
@@ -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;




More information about the busybox-cvs mailing list