Suppress a stupid compiler warning

This commit is contained in:
XANTRONIX Development 2023-12-27 13:16:52 -05:00
parent 927506f086
commit e2dd0a7ee5

View file

@ -45,6 +45,7 @@ hexagram_capture *hexagram_capture_open_fd(int fd, int flags) {
switch (header.endian) {
case HEXAGRAM_CAPTURE_ENDIAN:
case HEXAGRAM_CAPTURE_ENDIAN_SWAPPED:
capture->endian = header.endian;
break;
default:
@ -52,8 +53,7 @@ hexagram_capture *hexagram_capture_open_fd(int fd, int flags) {
}
}
capture->fd = fd;
capture->endian = header.endian;
capture->fd = fd;
return capture;