Remove #ifdef SMALL, it's a distraction. From otto

This commit is contained in:
Florian Obser 2023-02-19 11:18:53 +01:00
parent f1fbf312bd
commit 2630fc6fbe

View File

@ -561,9 +561,7 @@ main_dispatch_frontend(int fd, short event, void *bula)
{ {
// [...] // [...]
uint32_t if_index; uint32_t if_index;
#ifndef SMALL
int verbose; int verbose;
#endif /* SMALL */
// [...] // [...]
for (;;) { for (;;) {
if ((n = imsg_get(ibuf, &imsg)) == -1) if ((n = imsg_get(ibuf, &imsg)) == -1)
@ -579,7 +577,6 @@ main_dispatch_frontend(int fd, short event, void *bula)
memcpy(&if_index, imsg.data, sizeof(if_index)); memcpy(&if_index, imsg.data, sizeof(if_index));
open_bpfsock(if_index); open_bpfsock(if_index);
break; break;
#ifndef SMALL
case IMSG_CTL_RELOAD: case IMSG_CTL_RELOAD:
if (main_reload() == -1) if (main_reload() == -1)
log_warnx("configuration reload failed"); log_warnx("configuration reload failed");
@ -593,7 +590,6 @@ main_dispatch_frontend(int fd, short event, void *bula)
memcpy(&verbose, imsg.data, sizeof(verbose)); memcpy(&verbose, imsg.data, sizeof(verbose));
log_setverbose(verbose); log_setverbose(verbose);
break; break;
#endif /* SMALL */
case IMSG_UPDATE_IF: case IMSG_UPDATE_IF:
if (IMSG_DATA_SIZE(imsg) != sizeof(imsg_ifinfo)) if (IMSG_DATA_SIZE(imsg) != sizeof(imsg_ifinfo))
fatalx("%s: IMSG_UPDATE_IF wrong length: %lu", fatalx("%s: IMSG_UPDATE_IF wrong length: %lu",