httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Slemko <ma...@znep.com>
Subject Re: [PATCH] regex -Wall cleanup, take 2
Date Sun, 16 Feb 1997 07:12:00 GMT
On Sat, 15 Feb 1997, Dean Gaudet wrote:

> Ok this one compiles cleanly under gcc -Wall on Linux 2.x, Solaris 2.5.1,
> BSDI 2.1, IRIX 5.3 and 6.2.  (And with IRIX cc on 5.3 and 6.2.)
> 
> I've only run it on linux however.

+1, provided the following is also added:

Index: main.c
===================================================================
RCS file: /export/home/cvs/apache/src/regex/main.c,v
retrieving revision 1.1
diff -u -r1.1 main.c
--- main.c	1996/07/23 22:06:44	1.1
+++ main.c	1997/02/16 07:07:28
@@ -103,7 +104,7 @@
 		len = (int)(subs[0].rm_eo - subs[0].rm_so);
 		if (subs[0].rm_so != -1) {
 			if (len != 0)
-				printf("match `%.*s'\n", len,
+				printf("match `%.*s'\n", (int)len,
 					argv[optind] + subs[0].rm_so);
 			else
 				printf("match `'@%.1s\n",


Mime
View raw message