[PATCH] mystring: Add a few more uses of snlfmt

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Use snlfmt in a few more places.

Signed-off-by: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
---
 src/alias.c     | 2 +-
 src/jobs.c      | 2 +-
 src/miscbltin.c | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/alias.c b/src/alias.c
index bacf10f..a443e05 100644
--- a/src/alias.c
+++ b/src/alias.c
@@ -204,7 +204,7 @@ freealias(struct alias *ap) {
 
 void
 printalias(const struct alias *ap) {
-	out1fmt("%s\n", single_quote(ap->name));
+	out1fmt(snlfmt, single_quote(ap->name));
 }
 
 STATIC struct alias **
diff --git a/src/jobs.c b/src/jobs.c
index 840e37c..4cf6b8c 100644
--- a/src/jobs.c
+++ b/src/jobs.c
@@ -345,7 +345,7 @@ usage:
 			pid = **argv == '-' ?
 				-number(*argv + 1) : number(*argv);
 		if (kill(pid, signo) != 0) {
-			sh_warnx("%s\n", strerror(errno));
+			sh_warnx(snlfmt, strerror(errno));
 			i = 1;
 		}
 	} while (*++argv);
diff --git a/src/miscbltin.c b/src/miscbltin.c
index e553f9e..8a0ddf4 100644
--- a/src/miscbltin.c
+++ b/src/miscbltin.c
@@ -237,7 +237,7 @@ umaskcmd(int argc, char **argv)
 				*ap++ = ',';
 			}
 			ap[-1] = '\0';
-			out1fmt("%s\n", buf);
+			out1fmt(snlfmt, buf);
 		} else {
 			out1fmt("%.4o\n", mask);
 		}
-- 
2.39.2

-- 
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux