diff options
author | Jim Jagielski <jim@apache.org> | 2012-11-09 15:04:22 +0100 |
---|---|---|
committer | Jim Jagielski <jim@apache.org> | 2012-11-09 15:04:22 +0100 |
commit | ec425400e64e561fb3e0acd75b9df180b0777f65 (patch) | |
tree | 0a21bd282c9c4ffd1957029e45fd1eebd3df3bdc /modules/mappers/mod_speling.c | |
parent | remove warning: (diff) | |
download | apache2-ec425400e64e561fb3e0acd75b9df180b0777f65.tar.xz apache2-ec425400e64e561fb3e0acd75b9df180b0777f65.zip |
Remove warnings
mod_speling.c:400:41: warning: data argument not used by format string [-Wformat-extra-args]
r->uri, nuri, ref);
mod_speling.c:508:53: warning: data argument not used by format string [-Wformat-extra-args]
r->uri, candidates->nelts, ref);
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1407460 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | modules/mappers/mod_speling.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/mappers/mod_speling.c b/modules/mappers/mod_speling.c index b1c75d01f2..c520aa1c49 100644 --- a/modules/mappers/mod_speling.c +++ b/modules/mappers/mod_speling.c @@ -396,8 +396,9 @@ static int check_speling(request_rec *r) ap_log_rerror(APLOG_MARK, APLOG_INFO, APR_SUCCESS, r, ref ? "Fixed spelling: %s to %s from %s" - : "Fixed spelling: %s to %s", - r->uri, nuri, ref); + : "Fixed spelling: %s to %s%s", + r->uri, nuri, + (ref ? ref : "")); return HTTP_MOVED_PERMANENTLY; } @@ -504,8 +505,9 @@ static int check_speling(request_rec *r) ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, ref ? "Spelling fix: %s: %d candidates from %s" - : "Spelling fix: %s: %d candidates", - r->uri, candidates->nelts, ref); + : "Spelling fix: %s: %d candidates%s", + r->uri, candidates->nelts, + (ref ? ref : "")); return HTTP_MULTIPLE_CHOICES; } |