trawick 01/10/12 06:26:36
Modified: test testlock.c testnames.c
Log:
clean up some gcc warnings
Revision Changes Path
1.12 +1 -1 apr/test/testlock.c
Index: testlock.c
===================================================================
RCS file: /home/cvs/apr/test/testlock.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- testlock.c 2001/10/12 01:11:14 1.11
+++ testlock.c 2001/10/12 13:26:35 1.12
@@ -568,7 +568,7 @@
return APR_SUCCESS;
}
-apr_status_t test_timeoutcond(void)
+static apr_status_t test_timeoutcond(void)
{
apr_status_t s;
apr_interval_time_t timeout;
1.8 +3 -2 apr/test/testnames.c
Index: testnames.c
===================================================================
RCS file: /home/cvs/apr/test/testnames.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- testnames.c 2001/07/01 06:14:12 1.7
+++ testnames.c 2001/10/12 13:26:35 1.8
@@ -70,11 +70,12 @@
apr_terminate();
}
-static void root_result(char *path)
+static void root_result(const char *path)
{
apr_status_t status;
char errmsg[256];
- char *root = NULL;
+ const char *root = NULL;
+
status = apr_filepath_root(&root, &path, APR_FILEPATH_NATIVE, context);
apr_strerror(status, errmsg, sizeof(errmsg));
if (root)