svn commit: trunk/busybox/miscutils

vodz at busybox.net vodz at busybox.net
Fri Sep 16 13:16:02 UTC 2005


Author: vodz
Date: 2005-09-16 06:16:01 -0700 (Fri, 16 Sep 2005)
New Revision: 11482

Log:
more C-compatibily, Thanks Bernhard Fischer

Modified:
   trunk/busybox/miscutils/less.c


Changeset:
Modified: trunk/busybox/miscutils/less.c
===================================================================
--- trunk/busybox/miscutils/less.c	2005-09-16 13:03:21 UTC (rev 11481)
+++ trunk/busybox/miscutils/less.c	2005-09-16 13:16:01 UTC (rev 11482)
@@ -670,9 +670,10 @@
 	char *line2 = (char *) malloc((sizeof(char) * (strlen(line) + 1)) + 64);
 	char sub_line[256];
 	int prev_eo = 0;
+	regmatch_t match_structs;
+	
 	memset(sub_line, 0, 256);
 	strcpy(line2, line);
-	regmatch_t match_structs;
 
 	match_found = 0;
 	match_status = regexec(pattern, line2, 1, &match_structs, 0);




More information about the busybox-cvs mailing list