diff options
author | Rob Landley <rob@landley.net> | 2021-02-08 03:08:26 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2021-02-08 03:08:26 -0600 |
commit | a079039934311f64a48e1010a97492a22126042e (patch) | |
tree | df156add0a45e445c57dd70354cd7e2f85ff697f /toys/other/hwclock.c | |
parent | bdb0e5fd6e031f9b3fae95d8180cf6bba32384c8 (diff) | |
download | toybox-a079039934311f64a48e1010a97492a22126042e.tar.gz |
Have xclose() perform the fd != -1 test.
Diffstat (limited to 'toys/other/hwclock.c')
-rw-r--r-- | toys/other/hwclock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/other/hwclock.c b/toys/other/hwclock.c index a6db923a..541c70a3 100644 --- a/toys/other/hwclock.c +++ b/toys/other/hwclock.c @@ -84,5 +84,5 @@ void hwclock_main() if (settimeofday(&timeval, &tzone)) perror_exit("settimeofday failed"); } - if (fd != -1) close(fd); + xclose(fd); } |