Skip to content

Commit 91066e4

Browse files
authored
Merge pull request #233 from bbonev/time32warn
Avoid warning on 32bit
2 parents dd6b068 + da0ca7e commit 91066e4

3 files changed

Lines changed: 2 additions & 11 deletions

File tree

configure.ac

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ AC_CHECK_SIZEOF(pid_t)
7979
AC_CHECK_SIZEOF(uid_t)
8080
AC_CHECK_SIZEOF(gid_t)
8181
AC_CHECK_SIZEOF(dev_t)
82-
AC_CHECK_SIZEOF(time_t)
8382
AC_CHECK_SIZEOF(rlim_t,,[[
8483
#include <sys/time.h>
8584
#include <sys/resource.h>]])

src/shared/formats-util.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,6 @@
4646
# error Unknown gid_t size
4747
#endif
4848

49-
#if SIZEOF_TIME_T == 8
50-
# define PRI_TIME PRIi64
51-
#elif SIZEOF_TIME_T == 4
52-
# define PRI_TIME PRIu32
53-
#else
54-
# error Unknown time_t size
55-
#endif
56-
5749
#if SIZEOF_RLIM_T == 8
5850
# define RLIM_FMT "%" PRIu64
5951
#elif SIZEOF_RLIM_T == 4

src/udev/udevadm-monitor.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ static void print_device(struct udev_device *device, const char *source, int pro
4646
struct timespec ts;
4747

4848
clock_gettime(CLOCK_MONOTONIC, &ts);
49-
printf("%-6s[%"PRI_TIME".%06ld] %-8s %s (%s)\n",
49+
printf("%-6s[%"PRIi64".%06ld] %-8s %s (%s)\n",
5050
source,
51-
ts.tv_sec, ts.tv_nsec/1000,
51+
(int64_t)ts.tv_sec, ts.tv_nsec/1000,
5252
udev_device_get_action(device),
5353
udev_device_get_devpath(device),
5454
udev_device_get_subsystem(device));

0 commit comments

Comments
 (0)