From: Joe Orton Date: Mon, 14 Sep 2009 19:24:51 +0000 (+0000) Subject: * support/htdbm.c (htdbm_list): Fix compiler warning on x86_64. X-Git-Tag: 2.3.3~303 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f1dc8fcb396f8c5caeacd573591b158194f6203e;p=apache * 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 --- 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)