-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mkm: verified memory safety of remaining client fns
- Loading branch information
Showing
11 changed files
with
612 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#include <stdint.h> | ||
#define EPOLLIN 1 | ||
|
||
enum client_state { | ||
CS_RECV_KEY_ID, | ||
}; | ||
|
||
uint32_t client_state_epoll_events(enum client_state state) { | ||
switch (state) { | ||
case CS_RECV_KEY_ID: | ||
return EPOLLIN; | ||
} | ||
} |
Oops, something went wrong.