From 8e206e0dd6b9f757b07979e48f53ad5bf9b7b52b Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Fri, 25 Feb 2022 15:14:22 +1100 Subject: [PATCH] Constify utimes in compat library to match specs. Patch from vapier at chromium.org. --- openbsd-compat/bsd-misc.c | 2 +- openbsd-compat/bsd-misc.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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