diff options
| author | Steve Price <steve@FreeBSD.org> | 1997-08-24 00:26:12 +0000 |
|---|---|---|
| committer | Steve Price <steve@FreeBSD.org> | 1997-08-24 00:26:12 +0000 |
| commit | b74ad5265d28859d749e1afaa082032998283232 (patch) | |
| tree | fd9dfcf541b9db9de9bca9301d1e17fb14e97bf6 /bin/stty | |
| parent | 886e789627610009bb880256851ac358e0be8a79 (diff) | |
Notes
Diffstat (limited to 'bin/stty')
| -rw-r--r-- | bin/stty/key.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/bin/stty/key.c b/bin/stty/key.c index 502b364135b0..d5f8605f5da0 100644 --- a/bin/stty/key.c +++ b/bin/stty/key.c @@ -29,12 +29,15 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. - * - * $Id$ */ #ifndef lint -static char const sccsid[] = "@(#)key.c 8.3 (Berkeley) 4/2/94"; +#if 0 +static char sccsid[] = "@(#)key.c 8.3 (Berkeley) 4/2/94"; +#else +static const char rcsid[] = + "$Id$"; +#endif #endif /* not lint */ #include <sys/types.h> @@ -122,11 +125,11 @@ ksearch(argvp, ip) sizeof(keys)/sizeof(struct key), sizeof(struct key), c_key))) return (0); if (!(kp->flags & F_OFFOK) && ip->off) { - errx(1, "illegal option -- %s", name); + warnx("illegal option -- -%s", name); usage(); } if (kp->flags & F_NEEDARG && !(ip->arg = *++*argvp)) { - errx(1, "option requires an argument -- %s", name); + warnx("option requires an argument -- %s", name); usage(); } kp->f(ip); |
