summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-06-16 21:36:48 +0000
committerJim Meyering <jim@meyering.net>2005-06-16 21:36:48 +0000
commitf07a234d1d0fad264b2e3653223740a25fc964f5 (patch)
tree4c55d7632d302e113b00e0121ed97f237aa139d1 /src
parent4d2d749ee627d388c4d1b55d168a7c30a626ab1d (diff)
downloadcoreutils-f07a234d1d0fad264b2e3653223740a25fc964f5.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')
-rw-r--r--src/nice.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nice.c b/src/nice.c
index f5e81de3d..b008b536f 100644
--- a/src/nice.c
+++ b/src/nice.c
@@ -35,6 +35,7 @@
#include "error.h"
#include "long-options.h"
+#include "quote.h"
#include "xstrtol.h"
/* The official name of this program (e.g., no `g' prefix). */
@@ -154,7 +155,8 @@ main (int argc, char **argv)
enum { MIN_ADJUSTMENT = 1 - 2 * NZERO, MAX_ADJUSTMENT = 2 * NZERO - 1 };
long int tmp;
if (LONGINT_OVERFLOW < xstrtol (adjustment_given, NULL, 10, &tmp, ""))
- error (EXIT_FAIL, 0, _("invalid adjustment `%s'"), adjustment_given);
+ error (EXIT_FAIL, 0, _("invalid adjustment %s"),
+ quote (adjustment_given));
adjustment = MAX (MIN_ADJUSTMENT, MIN (tmp, MAX_ADJUSTMENT));
}