mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
htlc.h: move NUM_SIDES to define, not enum member
This commit is contained in:
parent
ff2535651e
commit
e4cd5eac28
@ -10,10 +10,10 @@
|
||||
#include <ccan/short_types/short_types.h>
|
||||
#include <ccan/str/str.h>
|
||||
|
||||
#define NUM_SIDES (REMOTE + 1)
|
||||
enum side {
|
||||
LOCAL,
|
||||
REMOTE,
|
||||
NUM_SIDES
|
||||
};
|
||||
|
||||
/* What are we doing: adding or removing? */
|
||||
@ -69,7 +69,6 @@ static inline const char *side_to_str(enum side side)
|
||||
switch (side) {
|
||||
case LOCAL: return "LOCAL";
|
||||
case REMOTE: return "REMOTE";
|
||||
case NUM_SIDES: break;
|
||||
}
|
||||
abort();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user