]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: http: remove a warning on strndup
authorWilly Tarreau <w@1wt.eu>
Fri, 25 Apr 2014 19:38:08 +0000 (21:38 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 25 Apr 2014 19:39:17 +0000 (21:39 +0200)
commit6c09c2ceae796d0f48ec2711a200114f8ba928dc
treedbbbdbbf315095033ed042a44f9095d15cdc91d5
parent6e774b455f0083a055e517aa27d8860ac0d84be9
BUILD: http: remove a warning on strndup

The latest commit about set-map/add-acl/... causes this warning for
me :

src/proto_http.c: In function 'parse_http_req_cond':
src/proto_http.c:8863: warning: implicit declaration of function 'strndup'
src/proto_http.c:8863: warning: incompatible implicit declaration of built-in function 'strndup'
src/proto_http.c:8890: warning: incompatible implicit declaration of built-in function 'strndup'
src/proto_http.c:8917: warning: incompatible implicit declaration of built-in function 'strndup'
src/proto_http.c:8944: warning: incompatible implicit declaration of built-in function 'strndup'

Use my_strndup() instead of strndup() which is not portable. No backport
needed.
src/proto_http.c