diff options
author | Jim Meyering <jim@meyering.net> | 2005-06-16 21:33:43 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2005-06-16 21:33:43 +0000 |
commit | 3787d01a51c110a513e9b6fafa6c5c641399f2ce (patch) | |
tree | c49427a07fa046ae09d5f9fcef4c8c6b1ffb0f7f /src/hostname.c | |
parent | 0441b743b0e89b12900f9085600846d2e5d0ceaf (diff) | |
download | coreutils-3787d01a51c110a513e9b6fafa6c5c641399f2ce.tar.xz |
Don't embed `this'-style quotes in format strings.
Rather than this: error (..., "...`%s'...", arg);
do this: error (..., "...%s...", quote (arg));
Diffstat (limited to 'src/hostname.c')
-rw-r--r-- | src/hostname.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hostname.c b/src/hostname.c index 082c89143..0abe64e21 100644 --- a/src/hostname.c +++ b/src/hostname.c @@ -100,7 +100,7 @@ main (int argc, char **argv) /* Set hostname to operand. */ char const *name = argv[optind]; if (sethostname (name, strlen (name)) != 0) - error (EXIT_FAILURE, errno, _("cannot set name to `%s'"), name); + error (EXIT_FAILURE, errno, _("cannot set name to %s"), quote (name)); #else error (EXIT_FAILURE, 0, _("cannot set hostname; this system lacks the functionality")); |