Suppress a stupid compiler warning
This commit is contained in:
parent
927506f086
commit
e2dd0a7ee5
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue