summaryrefslogtreecommitdiff
path: root/src/factor.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-06-16 21:44:25 +0000
committerJim Meyering <jim@meyering.net>2005-06-16 21:44:25 +0000
commitc95fdb837288fd304217de84b319cabb8dffadbb (patch)
tree16a30c3412de7598bf52375685ec57d6e810ad92 /src/factor.c
parentf682977c0cce43713d0e4a112fc3dbb4fa58d013 (diff)
downloadcoreutils-c95fdb837288fd304217de84b319cabb8dffadbb.tar.xz
Don't embed `this'-style quotes in format strings.
Include "quote.h". Rather than this: error (..., "...`%s'...", arg); do this: error (..., "...%s...", quote (arg));
Diffstat (limited to 'src/factor.c')
-rw-r--r--src/factor.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/factor.c b/src/factor.c
index 06987c814..3066d65e6 100644
--- a/src/factor.c
+++ b/src/factor.c
@@ -30,6 +30,7 @@
#include "error.h"
#include "inttostr.h"
#include "long-options.h"
+#include "quote.h"
#include "readtokens.h"
#include "xstrtol.h"
@@ -153,9 +154,9 @@ print_factors (const char *s)
if ((err = xstrtoumax (s, NULL, 10, &n, "")) != LONGINT_OK)
{
if (err == LONGINT_OVERFLOW)
- error (0, 0, _("`%s' is too large"), s);
+ error (0, 0, _("%s is too large"), quote (s));
else
- error (0, 0, _("`%s' is not a valid positive integer"), s);
+ error (0, 0, _("%s is not a valid positive integer"), quote (s));
return false;
}
n_factors = factor (n, MAX_N_FACTORS, factors);