[openssh-commits] [openssh] 02/05: Prevent unused variable warning.

git+noreply at mindrot.org git+noreply at mindrot.org
Mon Feb 17 22:56:54 AEDT 2020


This is an automated email from the git hooks/post-receive script.

dtucker pushed a commit to branch master
in repository openssh.

commit 41a2e64ae480eda73ee0e809bbe743d203890938
Author: Darren Tucker <dtucker at dtucker.net>
Date:   Mon Feb 17 22:51:00 2020 +1100

    Prevent unused variable warning.
---
 openbsd-compat/bsd-misc.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/openbsd-compat/bsd-misc.c b/openbsd-compat/bsd-misc.c
index 829e0c07..059b6d3b 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;

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list