logo

utils-std

Collection of commonly available Unix tools git clone https://anongit.hacktivis.me/git/utils-std.git/
commit: faddbf34a02375b91a49b238e20c7644eeb560b0
parent c10e309cb4c029629c419d73a2b3f362b42ee65f
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sat,  6 Sep 2025 08:30:28 +0200

cmd/time: use clock_t for t1

Diffstat:

Mcmd/time.c4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cmd/time.c b/cmd/time.c @@ -94,8 +94,8 @@ main(int argc, char *argv[]) int status = 0; waitpid(child, &status, 0); - int t1 = times(&tms); - if(t1 == (clock_t)-1) + clock_t t1 = times(&tms); + if(t1 == -1) { perror("time: error: times"); return 1;