summaryrefslogtreecommitdiff
path: root/src/sleep.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-06-16 21:35:40 +0000
committerJim Meyering <jim@meyering.net>2005-06-16 21:35:40 +0000
commit4d2d749ee627d388c4d1b55d168a7c30a626ab1d (patch)
tree68f179d2e28cea604b18e36d17f6b8d4e1932a9b /src/sleep.c
parent3787d01a51c110a513e9b6fafa6c5c641399f2ce (diff)
downloadcoreutils-4d2d749ee627d388c4d1b55d168a7c30a626ab1d.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/sleep.c')
-rw-r--r--src/sleep.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sleep.c b/src/sleep.c
index 6935b5a54..8ff3b3b45 100644
--- a/src/sleep.c
+++ b/src/sleep.c
@@ -1,5 +1,5 @@
/* sleep - delay for a specified amount of time.
- Copyright (C) 84, 1991-1997, 1999-2004 Free Software Foundation, Inc.
+ Copyright (C) 84, 1991-1997, 1999-2005 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -25,6 +25,7 @@
#include "c-strtod.h"
#include "error.h"
#include "long-options.h"
+#include "quote.h"
#include "xnanosleep.h"
#include "xstrtod.h"
@@ -134,7 +135,7 @@ main (int argc, char **argv)
/* Check any suffix char and update S based on the suffix. */
|| ! apply_suffix (&s, *p))
{
- error (0, 0, _("invalid time interval `%s'"), argv[i]);
+ error (0, 0, _("invalid time interval %s"), quote (argv[i]));
ok = false;
}