summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2010-11-13 08:02:02 +0100
committerJim Meyering <meyering@redhat.com>2010-11-13 11:40:52 +0100
commit4a8e9bf14c33b356680298d29f7321d82d4fde5d (patch)
treec0c1501d5338c49629364c24350166ac79396d92 /src
parent6568b173db1c98f39a53eadd9b09e0a0e5c11920 (diff)
downloadcoreutils-4a8e9bf14c33b356680298d29f7321d82d4fde5d.tar.xz
stat: do not provide variable precision time stamps
* src/stat.c: Don't include fstimeprec.c. (out_epoch_sec): Don't call fstimeprec. * NEWS: Update description. * doc/coreutils.texi: Likewise.
Diffstat (limited to 'src')
-rw-r--r--src/stat.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/stat.c b/src/stat.c
index ae7ce021f..b419f1943 100644
--- a/src/stat.c
+++ b/src/stat.c
@@ -63,7 +63,6 @@
#include "file-type.h"
#include "filemode.h"
#include "fs.h"
-#include "fstimeprec.h"
#include "getopt.h"
#include "mountlist.h"
#include "quote.h"
@@ -557,10 +556,7 @@ out_epoch_sec (char *pformat, size_t prefix_len, struct stat const *statbuf,
}
else
{
- static struct fstimeprec *tab;
- if (! tab)
- tab = fstimeprec_alloc ();
- precision = fstimeprec (tab, statbuf);
+ precision = 9;
}
if (precision && ISDIGIT (dot[-1]))