summaryrefslogtreecommitdiff
path: root/usr/src/cmd/mailx
diff options
context:
space:
mode:
authorViswanathan Kannappan <Viswanathan.Kannappan@Sun.COM>2008-08-27 10:52:04 -0700
committerViswanathan Kannappan <Viswanathan.Kannappan@Sun.COM>2008-08-27 10:52:04 -0700
commit2f72c445b35f7dcef8777bd8f5835bde5a138e38 (patch)
tree580226546b3711f074fa6957cb6d958103d3c67f /usr/src/cmd/mailx
parentec17a63adf01db073c8363e9d39d065c4c37ab84 (diff)
downloadillumos-joyent-2f72c445b35f7dcef8777bd8f5835bde5a138e38.tar.gz
4349051 *mailx* mailx has typos in messages
Contributed by Avinash Joshi <avinashtjoshi@gmail.com> and Rishi Nair <rishi.bugs@gmail.com>
Diffstat (limited to 'usr/src/cmd/mailx')
-rw-r--r--usr/src/cmd/mailx/cmd2.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/usr/src/cmd/mailx/cmd2.c b/usr/src/cmd/mailx/cmd2.c
index 868f4db952..fafc0bc6f2 100644
--- a/usr/src/cmd/mailx/cmd2.c
+++ b/usr/src/cmd/mailx/cmd2.c
@@ -20,7 +20,7 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -37,8 +37,6 @@
* contributors.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include "rcv.h"
#include <locale.h>
@@ -422,13 +420,13 @@ snarf(char linebuf[], int *flag, int erf)
* Skip leading whitespace.
*/
for (line_beg = linebuf;
- *line_beg && any(*line_beg, " \t");
- line_beg++) {
+ *line_beg && any(*line_beg, " \t");
+ line_beg++) {
/* empty body */
}
if (!*line_beg) {
if (erf) {
- printf(gettext("No file specified\n."));
+ printf(gettext("No file specified.\n"));
}
*flag = 0;
return (NOSTR);
@@ -458,7 +456,7 @@ snarf(char linebuf[], int *flag, int erf)
/* Search for the matching QUOTE character */
for (tok_beg = p, tok_end = NOSTR, p++;
*p != '\0' && *p != qc;
- p++) {
+ p++) {
if (*p == '\\' && *(p+1) == qc) {
p++;
}
@@ -509,7 +507,7 @@ snarf(char linebuf[], int *flag, int erf)
return (tok_beg);
} else {
if (erf) {
- printf(gettext("No file specified\n."));
+ printf(gettext("No file specified.\n"));
}
*flag = 0;
return (NOSTR);