summaryrefslogtreecommitdiffstats
path: root/openbsd-compat/bsd-misc.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2020-02-17 12:51:00 +0100
committerDarren Tucker <dtucker@dtucker.net>2020-02-17 12:51:00 +0100
commit41a2e64ae480eda73ee0e809bbe743d203890938 (patch)
treea4a970301531b6b6ca45d7101a9c1bfb718a1a6d /openbsd-compat/bsd-misc.c
parentCheck if getpeereid is actually declared. (diff)
downloadopenssh-41a2e64ae480eda73ee0e809bbe743d203890938.tar.xz
openssh-41a2e64ae480eda73ee0e809bbe743d203890938.zip
Prevent unused variable warning.
Diffstat (limited to '')
-rw-r--r--openbsd-compat/bsd-misc.c2
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],
int flag)
{
struct timeval tv[2];
+# ifdef HAVE_FUTIMES
int ret, oflags = O_WRONLY;
+# endif
tv[0].tv_sec = times[0].tv_sec;
tv[0].tv_usec = times[0].tv_nsec / 1000;