diff options
author | John Stebbins <[email protected]> | 2015-10-19 11:50:02 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2015-10-19 11:50:02 -0700 |
commit | 8a01c54c5cfd7107a00ab8417af07e161ff97b56 (patch) | |
tree | 1bc15d6927c6e7f588f6b456ef7e32e452de48e0 | |
parent | 3a9d7dce64a3057f21419f0cd765cdf929a66dad (diff) |
ports: make hb_opendir param const
-rw-r--r-- | libhb/ports.c | 2 | ||||
-rw-r--r-- | libhb/ports.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libhb/ports.c b/libhb/ports.c index ee896acb4..1bc4f283a 100644 --- a/libhb/ports.c +++ b/libhb/ports.c @@ -682,7 +682,7 @@ FILE * hb_fopen(const char *path, const char *mode) #endif } -HB_DIR* hb_opendir(char *path) +HB_DIR* hb_opendir(const char *path) { #ifdef SYS_MINGW HB_DIR *dir; diff --git a/libhb/ports.h b/libhb/ports.h index d16493043..941c8feee 100644 --- a/libhb/ports.h +++ b/libhb/ports.h @@ -73,7 +73,7 @@ typedef struct _stat64 hb_stat_t; typedef struct stat hb_stat_t; #endif -HB_DIR* hb_opendir(char *path); +HB_DIR* hb_opendir(const char *path); int hb_closedir(HB_DIR *dir); void hb_rewinddir(HB_DIR *dir); struct dirent * hb_readdir(HB_DIR *dir); |