diff options
Diffstat (limited to 'sys-utils/dmesg.c')
-rw-r--r-- | sys-utils/dmesg.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys-utils/dmesg.c b/sys-utils/dmesg.c index 454438842..92de6e26f 100644 --- a/sys-utils/dmesg.c +++ b/sys-utils/dmesg.c @@ -591,6 +591,8 @@ static ssize_t read_buffer(struct dmesg_control *ctl, char **buf) if (n == 0 && ctl->action == SYSLOG_ACTION_READ_CLEAR) n = klogctl(SYSLOG_ACTION_CLEAR, NULL, 0); break; + default: + abort(); /* impossible method -> drop core */ } return n; |