jwoolley 01/07/25 20:11:00
Modified: strings apr_strings.c
Log:
Silence warnings:
- sprintf() was used without including stdio.h (fixed by using apr_want.h)
- too many arguments to sprintf() for the format string given
Revision Changes Path
1.20 +5 -7 apr/strings/apr_strings.c
Index: apr_strings.c
===================================================================
RCS file: /home/cvs/apr/strings/apr_strings.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -u -r1.19 -r1.20
--- apr_strings.c 2001/07/25 21:32:45 1.19
+++ apr_strings.c 2001/07/26 03:11:00 1.20
@@ -57,15 +57,13 @@
#include "apr_general.h"
#include "apr_private.h"
#include "apr_lib.h"
+#define APR_WANT_STDIO
+#define APR_WANT_STRFUNC
+#include "apr_want.h"
+
#ifdef HAVE_STDDEF_H
#include <stddef.h> /* NULL */
#endif
-#if APR_HAVE_STRING_H
-#include <string.h>
-#endif
-#if APR_HAVE_STRINGS_H
-#include <strings.h>
-#endif
APR_DECLARE(char *) apr_pstrdup(apr_pool_t *a, const char *s)
{
@@ -246,7 +244,7 @@
return strcpy(buf, " - ");
}
if (size < 973) {
- sprintf(buf, "%3d ", (int) size, o);
+ sprintf(buf, "%3d ", (int) size);
return buf;
}
do {