Constify utimes in compat library to match specs.

Patch from vapier at chromium.org.
This commit is contained in:
Darren Tucker 2022-02-25 15:14:22 +11:00
parent 1b2920e3b6
commit 8e206e0dd6
2 changed files with 2 additions and 2 deletions

View 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;

View 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