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) {
|
switch (header.endian) {
|
||||||
case HEXAGRAM_CAPTURE_ENDIAN:
|
case HEXAGRAM_CAPTURE_ENDIAN:
|
||||||
case HEXAGRAM_CAPTURE_ENDIAN_SWAPPED:
|
case HEXAGRAM_CAPTURE_ENDIAN_SWAPPED:
|
||||||
|
capture->endian = header.endian;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -52,8 +53,7 @@ hexagram_capture *hexagram_capture_open_fd(int fd, int flags) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
capture->fd = fd;
|
capture->fd = fd;
|
||||||
capture->endian = header.endian;
|
|
||||||
|
|
||||||
return capture;
|
return capture;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue