mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 07:07:04 +02:00
MINOR: peers: use defines instead of enums to appease clang.
Clang (rightfully) warns that we're trying to set chars to values >= 128. Use defines with hex values instead of an enum to address this.
This commit is contained in:
parent
3332090a2d
commit
33992267aa
16
src/peers.c
16
src/peers.c
@ -120,15 +120,13 @@ enum {
|
||||
/* Note: ids >= 128 contains */
|
||||
/* id message cotains data */
|
||||
/*******************************/
|
||||
enum {
|
||||
PEER_MSG_STKT_UPDATE = 128,
|
||||
PEER_MSG_STKT_INCUPDATE,
|
||||
PEER_MSG_STKT_DEFINE,
|
||||
PEER_MSG_STKT_SWITCH,
|
||||
PEER_MSG_STKT_ACK,
|
||||
PEER_MSG_STKT_UPDATE_TIMED,
|
||||
PEER_MSG_STKT_INCUPDATE_TIMED,
|
||||
};
|
||||
#define PEER_MSG_STKT_UPDATE 0x80
|
||||
#define PEER_MSG_STKT_INCUPDATE 0x81
|
||||
#define PEER_MSG_STKT_DEFINE 0x82
|
||||
#define PEER_MSG_STKT_SWITCH 0x83
|
||||
#define PEER_MSG_STKT_ACK 0x84
|
||||
#define PEER_MSG_STKT_UPDATE_TIMED 0x85
|
||||
#define PEER_MSG_STKT_INCUPDATE_TIMED 0x86
|
||||
|
||||
/**********************************/
|
||||
/* Peer Session IO handler states */
|
||||
|
Loading…
Reference in New Issue
Block a user