From a4c15d4a0709263c7bf15601190e92e5e3b194ce Mon Sep 17 00:00:00 2001 From: cheloha Date: Mon, 4 Jul 2022 17:29:03 +0000 Subject: [PATCH] ts(1): the first argument to clock_gettime(2) is a clockid_t, not an int --- usr.bin/ts/ts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/ts/ts.c b/usr.bin/ts/ts.c index d5f8e13ef6d..fdcc68dd977 100644 --- a/usr.bin/ts/ts.c +++ b/usr.bin/ts/ts.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ts.c,v 1.5 2022/07/03 15:06:06 deraadt Exp $ */ +/* $OpenBSD: ts.c,v 1.6 2022/07/04 17:29:03 cheloha Exp $ */ /* * Copyright (c) 2022 Job Snijders * Copyright (c) 2022 Claudio Jeker @@ -42,7 +42,7 @@ main(int argc, char *argv[]) int ch, prev; struct timespec roff, start, now; struct tm *tm; - int clock = CLOCK_REALTIME; + clockid_t clock = CLOCK_REALTIME; if (pledge("stdio", NULL) == -1) err(1, "pledge"); -- 2.20.1