commit | ad65af7dab9b8d8033fd09d8031cc774a6fbf768 | [log] [tgz] |
---|---|---|
author | Godbach <nylzhaowei@gmail.com> | Mon Jul 28 17:31:57 2014 +0800 |
committer | Willy Tarreau <w@1wt.eu> | Wed Jul 30 09:06:33 2014 +0200 |
tree | 3716dc65df5822dba261390a5b76f22354b4d0d6 | |
parent | 87b7ac9b00fab2d9b5ba5970ed06a07e2f7c54e2 [diff] |
BUG/MINOR: server: move the directive #endif to the end of file If a source file includes proto/server.h twice or more, redefinition errors will be triggered for such inline functions as server_throttle_rate(), server_is_draining(), srv_adm_set_maint() and so on. Just move #endif directive to the end of file to solve this issue. Signed-off-by: Godbach <nylzhaowei@gmail.com> (cherry picked from commit e468d55998e134dac1b18d5d9d075ffd5691c827)