projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63861fc
)
Include "quote.h".
author
Jim Meyering
<jim@meyering.net>
Fri, 11 Jul 2003 10:37:21 +0000
(10:37 +0000)
committer
Jim Meyering
<jim@meyering.net>
Fri, 11 Jul 2003 10:37:21 +0000
(10:37 +0000)
Use the quote function rather than using literal `...' in a diagnostic.
src/date.c
patch
|
blob
|
history
diff --git
a/src/date.c
b/src/date.c
index
6e18b82
..
d92f646
100644
(file)
--- a/
src/date.c
+++ b/
src/date.c
@@
-33,6
+33,7
@@
#include "getline.h"
#include "posixtm.h"
#include "posixver.h"
+#include "quote.h"
#include "strftime.h"
#include "timespec.h"
@@
-242,7
+243,7
@@
batch_convert (const char *input_filename, const char *format)
in_stream = fopen (input_filename, "r");
if (in_stream == NULL)
{
- error (EXIT_FAILURE, errno, "
`%s'", input_filename
);
+ error (EXIT_FAILURE, errno, "
%s", quote (input_filename)
);
}
}