diff --git a/lib/util.c b/lib/util.c index 3fb8c54e5f..fdd758cf8c 100644 --- a/lib/util.c +++ b/lib/util.c @@ -634,7 +634,7 @@ load_mc_home_file (const char *from, const char *filename, char **allocated_file /* --------------------------------------------------------------------------------------------- */ -const const char * +const char * extract_line (const char *s, const char *top, size_t *len) { static char tmp_line[BUF_MEDIUM]; diff --git a/lib/util.h b/lib/util.h index a5be42e9a6..370c276d41 100644 --- a/lib/util.h +++ b/lib/util.h @@ -198,7 +198,7 @@ const char *get_group (gid_t gid); const char *get_owner (uid_t uid); /* Returns a copy of *s until a \n is found and is below top */ -const const char *extract_line (const char *s, const char *top, size_t *len); +const char *extract_line (const char *s, const char *top, size_t *len); /* Process spawning */ int my_system (int flags, const char *shell, const char *command);