diff options
author | Darren Tucker <dtucker@dtucker.net> | 2022-02-25 15:14:22 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2022-02-25 15:14:22 +1100 |
commit | 8e206e0dd6b9f757b07979e48f53ad5bf9b7b52b (patch) | |
tree | 9741c0a3079dadb3f9fb0642f68e7c8a0e9acee8 | |
parent | 1b2920e3b63db2eddebeec7330ffe8b723055573 (diff) |
Constify utimes in compat library to match specs.
Patch from vapier at chromium.org.
-rw-r--r-- | openbsd-compat/bsd-misc.c | 2 | ||||
-rw-r--r-- | 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 059b6d3b..d9c9b267 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 2206e1a8..61ead1b7 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 |