commit | 6254a9257e296f8439c92f43430fe8805f4cd8f2 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Tue Jan 29 17:45:23 2019 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Tue Jan 29 17:45:23 2019 +0100 |
tree | 1629b86062d797deb658512f0846ed29d5a15278 | |
parent | 6f731f33aca2695ef6dfe249d5658721c231443c [diff] |
BUILD/MINOR: peers: shut up a build warning introduced during last cleanup A new warning appears when building at -O0 since commit 3f0fb9df6 ("MINOR: peers: move "hello" message treatment code to reduce the size of the I/O handler."), it is related to the fact that proto_len is initialized from strlen() which is not a constant. Let's replace it with sizeof-1 instead and also mark the variable as static since it's useless outside of the file.