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