]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Constify utimes in compat library to match specs.
authorDarren Tucker <dtucker@dtucker.net>
Fri, 25 Feb 2022 04:14:22 +0000 (15:14 +1100)
committerDarren Tucker <dtucker@dtucker.net>
Fri, 25 Feb 2022 04:14:22 +0000 (15:14 +1100)
Patch from vapier at chromium.org.

openbsd-compat/bsd-misc.c
openbsd-compat/bsd-misc.h

index 059b6d3b3ec71ab0a447190c862d1da1ff2d028f..d9c9b2671ef750ef869e74150a1d522b3c300242 100644 (file)
@@ -107,7 +107,7 @@ const char *strerror(int e)
 #endif
 
 #ifndef HAVE_UTIMES
-int utimes(char *filename, struct timeval *tvp)
+int utimes(const char *filename, struct timeval *tvp)
 {
        struct utimbuf ub;
 
index 2206e1a8214098e4b3826cc890f2a80e379ad500..61ead1b7fad0ad871fa54c4cf833a51d7a9573ba 100644 (file)
@@ -62,7 +62,7 @@ struct timeval {
 }
 #endif /* HAVE_STRUCT_TIMEVAL */
 
-int utimes(char *, struct timeval *);
+int utimes(const char *, struct timeval *);
 #endif /* HAVE_UTIMES */
 
 #ifndef AT_FDCWD