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:
Olivier Houchard 2018-10-16 18:49:26 +02:00 committed by Willy Tarreau
parent 3332090a2d
commit 33992267aa

View File

@ -120,15 +120,13 @@ enum {
/* Note: ids >= 128 contains */ /* Note: ids >= 128 contains */
/* id message cotains data */ /* id message cotains data */
/*******************************/ /*******************************/
enum { #define PEER_MSG_STKT_UPDATE 0x80
PEER_MSG_STKT_UPDATE = 128, #define PEER_MSG_STKT_INCUPDATE 0x81
PEER_MSG_STKT_INCUPDATE, #define PEER_MSG_STKT_DEFINE 0x82
PEER_MSG_STKT_DEFINE, #define PEER_MSG_STKT_SWITCH 0x83
PEER_MSG_STKT_SWITCH, #define PEER_MSG_STKT_ACK 0x84
PEER_MSG_STKT_ACK, #define PEER_MSG_STKT_UPDATE_TIMED 0x85
PEER_MSG_STKT_UPDATE_TIMED, #define PEER_MSG_STKT_INCUPDATE_TIMED 0x86
PEER_MSG_STKT_INCUPDATE_TIMED,
};
/**********************************/ /**********************************/
/* Peer Session IO handler states */ /* Peer Session IO handler states */