Author: joes
Date: Mon Jul 25 05:00:54 2005
New Revision: 224715
URL: http://svn.apache.org/viewcvs?rev=224715&view=rev
Log:
hpux compiler fixes.
The badchar test was busted: testing s>0
is meaningless since s is a char*.
Modified:
httpd/apreq/trunk/library/util.c
Modified: httpd/apreq/trunk/library/util.c
URL:
http://svn.apache.org/viewcvs/httpd/apreq/trunk/library/util.c?rev=224715&r1=224714&r2=224715&view=diff
==============================================================================
--- httpd/apreq/trunk/library/util.c (original)
+++ httpd/apreq/trunk/library/util.c Mon Jul 25 05:00:54 2005
@@ -20,6 +20,9 @@
#include "apr_strings.h"
#include "apr_lib.h"
#include <assert.h>
+
+#undef MAX
+#undef MIN
#define MIN(a,b) ( (a) < (b) ? (a) : (b) )
#define MAX(a,b) ( (a) > (b) ? (a) : (b) )
@@ -549,7 +552,7 @@
break;
default:
- if (s > 0) {
+ if (*s > 0) {
*d = *s;
}
else {