diff --git a/usr.bin/locate/locate/locate.c b/usr.bin/locate/locate/locate.c index 64ce7f95d472..d7529fbd88a2 100644 --- a/usr.bin/locate/locate/locate.c +++ b/usr.bin/locate/locate/locate.c @@ -325,7 +325,7 @@ cputime () { struct rusage rus; - getrusage(0, &rus); + getrusage(RUSAGE_SELF, &rus); return(rus.ru_utime.tv_sec * 1000 + rus.ru_utime.tv_usec / 1000); } #endif /* DEBUG */