mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-06 03:08:31 +00:00
Perform inconsequential code cleanup
This commit is contained in:
parent
929478c524
commit
decf216655
52 changed files with 326 additions and 442 deletions
|
@ -37,10 +37,8 @@ int utimes(const char *path, const struct timeval tv[2]) {
|
|||
int rc;
|
||||
struct timespec ts[2];
|
||||
if (tv) {
|
||||
ts[0].tv_sec = tv[0].tv_sec;
|
||||
ts[0].tv_nsec = tv[0].tv_usec * 1000;
|
||||
ts[1].tv_sec = tv[1].tv_sec;
|
||||
ts[1].tv_nsec = tv[1].tv_usec * 1000;
|
||||
ts[0] = timeval_totimespec(tv[0]);
|
||||
ts[1] = timeval_totimespec(tv[1]);
|
||||
rc = __utimens(AT_FDCWD, path, ts, 0);
|
||||
} else {
|
||||
rc = __utimens(AT_FDCWD, path, 0, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue