From: Darren Tucker Date: Fri, 25 Feb 2022 04:14:22 +0000 (+1100) Subject: Constify utimes in compat library to match specs. X-Git-Tag: V_9_0_P1~48 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8e206e0dd6b9f757b07979e48f53ad5bf9b7b52b;p=thirdparty%2Fopenssh-portable.git Constify utimes in compat library to match specs. Patch from vapier at chromium.org. --- diff --git a/openbsd-compat/bsd-misc.c b/openbsd-compat/bsd-misc.c index 059b6d3b3..d9c9b2671 100644 --- a/openbsd-compat/bsd-misc.c +++ b/openbsd-compat/bsd-misc.c @@ -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; diff --git a/openbsd-compat/bsd-misc.h b/openbsd-compat/bsd-misc.h index 2206e1a82..61ead1b7f 100644 --- a/openbsd-compat/bsd-misc.h +++ b/openbsd-compat/bsd-misc.h @@ -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