From: cheloha Date: Mon, 4 Jul 2022 17:29:03 +0000 (+0000) Subject: ts(1): the first argument to clock_gettime(2) is a clockid_t, not an int X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a4c15d4a0709263c7bf15601190e92e5e3b194ce;p=openbsd ts(1): the first argument to clock_gettime(2) is a clockid_t, not an int --- 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");