summaryrefslogtreecommitdiff
path: root/src/udev
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-04-08 21:08:21 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-04-08 21:08:21 -0400
commitb3b90a25f3fcae12b2752ed85ec1a669e11208d8 (patch)
tree660e54bb76b51c106e980a893edbc0fc9ed6e225 /src/udev
parent045e00cf16c47bc516c0823d059b7548f3ce9c7c (diff)
udevadm: assert return value
This mirrors what we do in now(). CID #1351755.
Diffstat (limited to 'src/udev')
-rw-r--r--src/udev/udevadm-monitor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/udevadm-monitor.c b/src/udev/udevadm-monitor.c
index b5f7f0d512..c0ef073476 100644
--- a/src/udev/udevadm-monitor.c
+++ b/src/udev/udevadm-monitor.c
@@ -40,7 +40,7 @@ static void sig_handler(int signum) {
static void print_device(struct udev_device *device, const char *source, int prop) {
struct timespec ts;
- clock_gettime(CLOCK_MONOTONIC, &ts);
+ assert_se(clock_gettime(CLOCK_MONOTONIC, &ts) == 0);
printf("%-6s[%"PRI_TIME".%06ld] %-8s %s (%s)\n",
source,
ts.tv_sec, ts.tv_nsec/1000,