summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys-utils/ldattach.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/sys-utils/ldattach.c b/sys-utils/ldattach.c
index e05cefef6..d331413fd 100644
--- a/sys-utils/ldattach.c
+++ b/sys-utils/ldattach.c
@@ -309,6 +309,10 @@ int main(int argc, char **argv)
case '2':
ts.c_cflag |= CSTOPB;
break;
+ case '-':
+ break;
+ default:
+ abort();
}
switch (bits) {
case '7':
@@ -317,6 +321,10 @@ int main(int argc, char **argv)
case '8':
ts.c_cflag = (ts.c_cflag & ~CSIZE) | CS8;
break;
+ case '-':
+ break;
+ default:
+ abort();
}
switch (parity) {
case 'n':
@@ -329,6 +337,10 @@ int main(int argc, char **argv)
case 'o':
ts.c_cflag |= (PARENB | PARODD);
break;
+ case '-':
+ break;
+ default:
+ abort();
}
ts.c_cflag |= CREAD; /* just to be on the safe side */