summaryrefslogtreecommitdiff
path: root/src/libudev/libudev-util.c
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2012-11-11 20:45:05 +0100
committerKay Sievers <kay@vrfy.org>2012-11-12 01:03:14 +0100
commit40fe8b11be9c1a1b38b91db097a5d6ebfa99304c (patch)
tree41183236fc9e51fe054afe378151c045893e75f8 /src/libudev/libudev-util.c
parent1707b36c6da447a42b0223840cf2eb84ca3f2f34 (diff)
udev: use usec_t and now()
Diffstat (limited to 'src/libudev/libudev-util.c')
-rw-r--r--src/libudev/libudev-util.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/libudev/libudev-util.c b/src/libudev/libudev-util.c
index b1c113046e..b609857eaf 100644
--- a/src/libudev/libudev-util.c
+++ b/src/libudev/libudev-util.c
@@ -691,23 +691,6 @@ uint64_t util_string_bloom64(const char *str)
return bits;
}
-#define USEC_PER_SEC 1000000ULL
-#define NSEC_PER_USEC 1000ULL
-unsigned long long ts_usec(const struct timespec *ts)
-{
- return (unsigned long long) ts->tv_sec * USEC_PER_SEC +
- (unsigned long long) ts->tv_nsec / NSEC_PER_USEC;
-}
-
-unsigned long long now_usec(void)
-{
- struct timespec ts;
-
- if (clock_gettime(CLOCK_MONOTONIC, &ts) != 0)
- return 0;
- return ts_usec(&ts);
-}
-
ssize_t print_kmsg(const char *fmt, ...)
{
int fd;