diff options
author | jilles <jilles@FreeBSD.org> | 2010-10-29 21:44:43 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2010-10-29 21:44:43 +0000 |
commit | 2ae15286ba81b09f8218603c0b4d2967e244dbcb (patch) | |
tree | 7b7736094e070c384f8bd71fbce2eafd0870db13 /bin/sh/histedit.c | |
parent | f19465b84d9ea0a29f8498fdfd4f334e509a7f72 (diff) | |
download | FreeBSD-src-2ae15286ba81b09f8218603c0b4d2967e244dbcb.zip FreeBSD-src-2ae15286ba81b09f8218603c0b4d2967e244dbcb.tar.gz |
sh: Tweak some string constants to reduce code size.
* Reduce some needless differences.
* Shorten some error messages that should not happen.
Diffstat (limited to 'bin/sh/histedit.c')
-rw-r--r-- | bin/sh/histedit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/sh/histedit.c b/bin/sh/histedit.c index dab69f1..3fc1782 100644 --- a/bin/sh/histedit.c +++ b/bin/sh/histedit.c @@ -297,7 +297,7 @@ histcmd(int argc, char **argv) laststr = argv[1]; break; default: - error("too many args"); + error("too many arguments"); } /* * Turn into event numbers. @@ -329,7 +329,7 @@ histcmd(int argc, char **argv) editfile = editfilestr; if ((efp = fdopen(fd, "w")) == NULL) { close(fd); - error("can't allocate stdio buffer for temp"); + error("Out of space"); } } |