Skip to content

Commit

Permalink
fix: add missing break
Browse files Browse the repository at this point in the history
  • Loading branch information
Zxilly committed Jun 30, 2024
1 parent f303201 commit 5bd35af
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/ua2f.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,21 +66,26 @@ int main(const int argc, char *argv[]) {
switch (nfqueue_next(buf, packet)) {
case IO_ERROR:
should_exit = true;
break;
case IO_READY:
handle_packet(queue, packet);
break;
case IO_NOTREADY:
// we've read every packet in the buffer
break;
default:
// we should never reach this point
syslog(LOG_ERR, "Unknown return value [%s:%d]", __FILE__, __LINE__);
should_exit = true;
break;
}
}
break;
default:
// we should never reach this point
syslog("LOG_ERR", "Unknown return value [%s:%d]", __FILE__, __LINE__);
syslog(LOG_ERR, "Unknown return value [%s:%d]", __FILE__, __LINE__);
should_exit = true;
break;
}
}

Expand Down

0 comments on commit 5bd35af

Please sign in to comment.