make(1): inline set_times() into Job_Touch()
authorcheloha <cheloha@openbsd.org>
Tue, 9 Apr 2024 15:08:21 +0000 (15:08 +0000)
committercheloha <cheloha@openbsd.org>
Tue, 9 Apr 2024 15:08:21 +0000 (15:08 +0000)
commit7e440d195958617aa4d56ce3f25adf45e0335334
tree17144aa443dc63541796da10334e2fa622957888
parentb0fd99856f5b87514c3514e4971843ef500af31d
make(1): inline set_times() into Job_Touch()

set_times() has one caller: Job_Touch().  set_times() is a thin
utimes(2) wrapper.  Using utimes(2) to reset a file's atime/mtime
to the current time is not cumbersome.

So, remove set_times() and just call utimes(2) directly.

Thread: https://marc.info/?l=openbsd-tech&m=171262211713835&w=2

ok kn@
usr.bin/make/engine.c
usr.bin/make/timestamp.c
usr.bin/make/timestamp.h