From fcb38c9cc5a623ce67e920a08b20e225021f8b32 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Mon, 9 May 2016 19:10:05 +0200 Subject: [PATCH] Constify fisdir() argument Signed-off-by: Joachim Nilsson --- fisdir.c | 2 +- lite.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fisdir.c b/fisdir.c index d9d7b68..8f8a28c 100644 --- a/fisdir.c +++ b/fisdir.c @@ -32,7 +32,7 @@ * Returns: * %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; diff --git a/lite.h b/lite.h index 74786b1..7168930 100644 --- a/lite.h +++ b/lite.h @@ -39,7 +39,7 @@ typedef struct lfile lfile_t; char *chomp (char *str); int fexist (char *file); -int fisdir (char *file); +int fisdir (const char *file); mode_t fmode (char *file); FILE *tempfile (void);