diff options
author | Ray Lai <ray@cvs.openbsd.org> | 2006-03-11 06:58:01 +0000 |
---|---|---|
committer | Ray Lai <ray@cvs.openbsd.org> | 2006-03-11 06:58:01 +0000 |
commit | d0404b721f4974d730b2175f03bee21d10fdecd1 (patch) | |
tree | f5ae7d1e6382cc9050d9960cd03926c1f2747b68 /usr.bin/vi/ex/ex_read.c | |
parent | 746279f1e389cf221d7b62b73e3a084f593e1e3c (diff) |
Silence 39 warnings.
ok miod, otto
Diffstat (limited to 'usr.bin/vi/ex/ex_read.c')
-rw-r--r-- | usr.bin/vi/ex/ex_read.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.bin/vi/ex/ex_read.c b/usr.bin/vi/ex/ex_read.c index 7a104885994..4cbb356060c 100644 --- a/usr.bin/vi/ex/ex_read.c +++ b/usr.bin/vi/ex/ex_read.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ex_read.c,v 1.7 2002/02/16 21:27:57 millert Exp $ */ +/* $OpenBSD: ex_read.c,v 1.8 2006/03/11 06:58:00 ray Exp $ */ /*- * Copyright (c) 1992, 1993, 1994 @@ -68,6 +68,8 @@ ex_read(sp, cmdp) switch (cmdp->argc) { case 0: which = R_ARG; + arg = NULL; /* unused */ + arglen = 0; /* unused */ break; case 1: arg = cmdp->argv[0]->bp; @@ -241,6 +243,9 @@ ex_read(sp, cmdp) } break; + default: + abort(); + /* NOTREACHED */ } /* |