From f1dc8fcb396f8c5caeacd573591b158194f6203e Mon Sep 17 00:00:00 2001 From: Joe Orton Date: Mon, 14 Sep 2009 19:24:51 +0000 Subject: [PATCH] * support/htdbm.c (htdbm_list): Fix compiler warning on x86_64. (the field width must always be passed as an int if using "%.*") git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@814792 13f79535-47bb-0310-9956-ffa450edef68 --- support/htdbm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/support/htdbm.c b/support/htdbm.c index 8baa75ebb6..46cf7250e2 100644 --- a/support/htdbm.c +++ b/support/htdbm.c @@ -258,10 +258,10 @@ static apr_status_t htdbm_list(htdbm_t *htdbm) return APR_EGENERAL; } /* Note: we don't store \0-terminators on our dbm data */ - fprintf(stderr, " %-32.*s", key.dsize, key.dptr); + fprintf(stderr, " %-32.*s", (int)key.dsize, key.dptr); cmnt = memchr(val.dptr, ':', val.dsize); if (cmnt) - fprintf(stderr, " %.*s", val.dptr+val.dsize - (cmnt+1), cmnt + 1); + fprintf(stderr, " %.*s", (int)(val.dptr+val.dsize - (cmnt+1)), cmnt + 1); fprintf(stderr, "\n"); rv = apr_dbm_nextkey(htdbm->dbm, &key); if (rv != APR_SUCCESS) -- 2.40.0