From 9f0f4a2c5495eec2d81a4381fb962fad93b2ddde Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Tue, 9 Sep 2014 20:05:27 -0700 Subject: Copious const cleanup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Removes 1554 gcc warnings of "discards ‘const’ qualifier" Signed-off-by: Alan Coopersmith --- util.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'util.c') diff --git a/util.c b/util.c index 2378b40..bbc8ea9 100644 --- a/util.c +++ b/util.c @@ -184,7 +184,7 @@ GetString(Widget w) */ FileAccess -MaybeCreateFile(char *file) +MaybeCreateFile(const char *file) { Boolean exists; int fd; @@ -200,7 +200,7 @@ MaybeCreateFile(char *file) FileAccess -CheckFilePermissions(char *file, Boolean *exists) +CheckFilePermissions(const char *file, Boolean *exists) { char temp[BUFSIZ], *ptr; @@ -230,7 +230,7 @@ CheckFilePermissions(char *file, Boolean *exists) } xedit_flist_item * -AddTextSource(Widget source, char *name, char *filename, int flags, +AddTextSource(Widget source, const char *name, const char *filename, int flags, FileAccess file_access) { xedit_flist_item *item; @@ -367,7 +367,7 @@ KillTextSource(xedit_flist_item *item) } xedit_flist_item * -FindTextSource(Widget source, char *filename) +FindTextSource(Widget source, const char *filename) { unsigned i; -- cgit v1.2.3