rse 98/02/24 07:44:33
Modified: src/modules/standard mod_rewrite.c
Log:
Add missing "static" and include <stdlib.h> for
RAND_MAX. Thanks to Ben Hyde <[EMAIL PROTECTED]>.
Revision Changes Path
1.70 +3 -2 apache-1.3/src/modules/standard/mod_rewrite.c
Index: mod_rewrite.c
===================================================================
RCS file: /export/home/cvs/apache-1.3/src/modules/standard/mod_rewrite.c,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -r1.69 -r1.70
--- mod_rewrite.c 1998/02/24 13:39:10 1.69
+++ mod_rewrite.c 1998/02/24 15:44:31 1.70
@@ -90,6 +90,7 @@
/* from the underlaying Unix system ... */
#include <string.h>
#include <stdarg.h>
+#include <stdlib.h>
#include <time.h>
#include <signal.h>
#include <errno.h>
@@ -2708,7 +2709,7 @@
static int rewrite_rand_init_done = 0;
-void rewrite_rand_init(void)
+static void rewrite_rand_init(void)
{
if (!rewrite_rand_init_done) {
srand((unsigned)(getpid()));
@@ -2717,7 +2718,7 @@
return;
}
-int rewrite_rand(int l, int h)
+static int rewrite_rand(int l, int h)
{
int i;
char buf[50];