]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: sink: address build warning on 32-bit architectures
authorWilly Tarreau <w@1wt.eu>
Tue, 2 Jun 2020 10:00:46 +0000 (12:00 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 2 Jun 2020 10:01:51 +0000 (12:01 +0200)
commit570a22b11bf55e578d07f70bf2146901d8f35d70
tree5013650abf9570a38bc7df05014845b3b2b12df4
parent55af9e90f8a99edda4f46300f5768347b97b69af
BUILD: sink: address build warning on 32-bit architectures

The recently added ring section post-processing added this bening
warning on 32-bit archs:

  src/sink.c: In function 'cfg_post_parse_ring':
  src/sink.c:994:15: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'size_t {aka unsigned int}' [-Wformat=]
      ha_warning("ring '%s' event max length '%u' exceeds size, forced to size '%lu'.\n",
               ^
Let's just cast b_size() to unsigned long here.
src/sink.c