Dynamically adjust backend weights based on a http response from the backend

  • Nils Goroll's avatar
    avoid a warning on gcc8 · 6dc194ff
    Nils Goroll authored
    In function ‘wadj_cfg_req.isra.1’,
        inlined from ‘vmod_random_add_backend’ at
    vmod_weightadjust.c:291:14:
    vmod_weightadjust.c:170:10: error: ‘strncpy’ output truncated before
    terminating nul copying as many bytes from a string as its length
    [-Werror=stringop-truncation]
    
    gcc does not understand that we are adding a NUL ourselves. Avoid this
    warning by a differnt but equally safe approach.
    
    Reported by volker27@gmx.at, thank you
    6dc194ff
Name
Last commit
Last update
contrib Loading commit data...
m4 Loading commit data...
src Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CHANGES.rst Loading commit data...
COPYING Loading commit data...
LICENSE Loading commit data...
Makefile.am Loading commit data...
README.rst Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...