]> granicus.if.org Git - apache/commitdiff
* support/htdbm.c (htdbm_list): Fix compiler warning on x86_64.
authorJoe Orton <jorton@apache.org>
Mon, 14 Sep 2009 19:24:51 +0000 (19:24 +0000)
committerJoe Orton <jorton@apache.org>
Mon, 14 Sep 2009 19:24:51 +0000 (19:24 +0000)
  (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

index 8baa75ebb61c383ce9935019bd43698a3b545158..46cf7250e27d7f055364ded23ba3ad87311c7686 100644 (file)
@@ -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)