Set leap status by enum

This commit is contained in:
Miroslav Lichvar
2011-06-13 17:02:42 +02:00
parent 91279a0f28
commit 1b8547059a
3 changed files with 3 additions and 3 deletions

View File

@@ -531,7 +531,7 @@ transmit_packet(NTP_Mode my_mode, /* The mode this machine wants to be */
if (are_we_synchronised) {
leap = (int) leap_status;
} else {
leap = 3;
leap = LEAP_Unsynchronised;
}
/* Generate transmit packet */