diff options
author | Darren Tucker <dtucker@dtucker.net> | 2020-02-17 22:51:00 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2020-02-17 22:51:00 +1100 |
commit | 41a2e64ae480eda73ee0e809bbe743d203890938 (patch) | |
tree | a4a970301531b6b6ca45d7101a9c1bfb718a1a6d | |
parent | d4860ec4efd25ba194337082736797fce0bda016 (diff) |
Prevent unused variable warning.
-rw-r--r-- | openbsd-compat/bsd-misc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/openbsd-compat/bsd-misc.c b/openbsd-compat/bsd-misc.c index 829e0c075..059b6d3b3 100644 --- a/openbsd-compat/bsd-misc.c +++ b/openbsd-compat/bsd-misc.c | |||
@@ -129,7 +129,9 @@ utimensat(int fd, const char *path, const struct timespec times[2], | |||
129 | int flag) | 129 | int flag) |
130 | { | 130 | { |
131 | struct timeval tv[2]; | 131 | struct timeval tv[2]; |
132 | # ifdef HAVE_FUTIMES | ||
132 | int ret, oflags = O_WRONLY; | 133 | int ret, oflags = O_WRONLY; |
134 | # endif | ||
133 | 135 | ||
134 | tv[0].tv_sec = times[0].tv_sec; | 136 | tv[0].tv_sec = times[0].tv_sec; |
135 | tv[0].tv_usec = times[0].tv_nsec / 1000; | 137 | tv[0].tv_usec = times[0].tv_nsec / 1000; |