Mark stat_t Arg to UTIL_setFileStat() const

This commit is contained in:
W. Felix Handte 2020-08-05 00:35:21 -04:00
parent 5fbc6addb6
commit 1a1003f996
2 changed files with 2 additions and 2 deletions

View File

@ -149,7 +149,7 @@ int UTIL_chmod(char const* filename, mode_t permissions)
return chmod(filename, permissions);
}
int UTIL_setFileStat(const char *filename, stat_t *statbuf)
int UTIL_setFileStat(const char *filename, const stat_t *statbuf)
{
int res = 0;

View File

@ -132,7 +132,7 @@ int UTIL_isFIFO(const char* infilename);
U64 UTIL_getFileSize(const char* infilename);
U64 UTIL_getTotalFileSize(const char* const * fileNamesTable, unsigned nbFiles);
int UTIL_getFileStat(const char* infilename, stat_t* statbuf);
int UTIL_setFileStat(const char* filename, stat_t* statbuf);
int UTIL_setFileStat(const char* filename, const stat_t* statbuf);
int UTIL_getDirectoryStat(const char* infilename, stat_t* statbuf);
int UTIL_chmod(char const* filename, mode_t permissions); /*< like chmod, but avoid changing permission of /dev/null */
int UTIL_compareStr(const void *p1, const void *p2);