Constify fisdir() argument

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2016-05-09 19:10:05 +02:00
1 parent ab69ae8374
commit fcb38c9cc5
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -32,7 +32,7 @@
* Returns: * Returns:
* %TRUE(1) if the file exists and is a directory, otherwise %FALSE(0). * %TRUE(1) if the file exists and is a directory, otherwise %FALSE(0).
*/ */
int fisdir(char *file) int fisdir(const char *file)
{ {
struct stat sb; struct stat sb;
+1 -1
View File
@@ -39,7 +39,7 @@ typedef struct lfile lfile_t;
char *chomp (char *str); char *chomp (char *str);
int fexist (char *file); int fexist (char *file);
int fisdir (char *file); int fisdir (const char *file);
mode_t fmode (char *file); mode_t fmode (char *file);
FILE *tempfile (void); FILE *tempfile (void);