Module Name: src
Committed By: christos
Date: Sat Oct 5 20:22:36 UTC 2019
Modified Files:
src/usr.bin/sed: main.c
Log Message:
add an abort for a case that can't happen
To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/usr.bin/sed/main.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/sed/main.c
diff -u src/usr.bin/sed/main.c:1.34 src/usr.bin/sed/main.c:1.35
--- src/usr.bin/sed/main.c:1.34 Thu Mar 12 08:40:41 2015
+++ src/usr.bin/sed/main.c Sat Oct 5 16:22:36 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.34 2015/03/12 12:40:41 christos Exp $ */
+/* $NetBSD: main.c,v 1.35 2019/10/05 20:22:36 christos Exp $ */
/*-
* Copyright (c) 2013 Johann 'Myrkraverk' Oskarsson.
@@ -39,7 +39,7 @@
#endif
#include <sys/cdefs.h>
-__RCSID("$NetBSD: main.c,v 1.34 2015/03/12 12:40:41 christos Exp $");
+__RCSID("$NetBSD: main.c,v 1.35 2019/10/05 20:22:36 christos Exp $");
#ifdef __FBSDID
__FBSDID("$FreeBSD: head/usr.bin/sed/main.c 252231 2013-06-26 04:14:19Z pfg $");
#endif
@@ -268,6 +268,8 @@ again:
s = script->s;
state = ST_STRING;
goto again;
+ default:
+ abort();
}
case ST_FILE:
if ((p = fgets(buf, n, f)) != NULL) {