]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: http: fix build warning introduced with url32/url32_src
authorWilly Tarreau <w@1wt.eu>
Mon, 18 Nov 2013 17:33:22 +0000 (18:33 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 18 Nov 2013 17:33:32 +0000 (18:33 +0100)
commit 39c63c5 "url32+src - like base32+src but whole url including parameters"
was missing the last argument "const char *kw", resulting in the build warning
below :

src/proto_http.c:10351:2: warning: initialization from incompatible pointer type [enabled by default]
src/proto_http.c:10351:2: warning: (near initialization for 'sample_fetch_keywords.kw[50].process') [enabled by default]
src/proto_http.c:10352:2: warning: initialization from incompatible pointer type [enabled by default]
src/proto_http.c:10352:2: warning: (near initialization for 'sample_fetch_keywords.kw[51].process') [enabled by default]

It's harmless since it's not needed there anyway.

src/proto_http.c

index f037b1edd090a6caf5ac08c2aefa919c37fc797c..f432e653cb2700618612e8892f9497f943d56ef4 100644 (file)
@@ -10052,7 +10052,7 @@ smp_fetch_url_param_val(struct proxy *px, struct session *l4, void *l7, unsigned
  */
 static int
 smp_fetch_url32(struct proxy *px, struct session *l4, void *l7, unsigned int opt,
-                 const struct arg *args, struct sample *smp)
+                 const struct arg *args, struct sample *smp, const char *kw)
 {
        struct http_txn *txn = l7;
        struct hdr_ctx ctx;
@@ -10100,11 +10100,11 @@ smp_fetch_url32(struct proxy *px, struct session *l4, void *l7, unsigned int opt
  */
 static int
 smp_fetch_url32_src(struct proxy *px, struct session *l4, void *l7, unsigned int opt,
-                     const struct arg *args, struct sample *smp)
+                     const struct arg *args, struct sample *smp, const char *kw)
 {
        struct chunk *temp;
 
-       if (!smp_fetch_url32(px, l4, l7, opt, args, smp))
+       if (!smp_fetch_url32(px, l4, l7, opt, args, smp, kw))
                return 0;
 
        temp = get_trash_chunk();