diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-09-09 20:05:27 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-09-09 20:05:27 -0700 |
commit | 9f0f4a2c5495eec2d81a4381fb962fad93b2ddde (patch) | |
tree | 7608fb1bc62b2df1c8bcb4f549a35607a37e905b /util.c | |
parent | 40615f52b8fe7478599ce4948ccc751aa0a34397 (diff) |
Copious const cleanup
Removes 1554 gcc warnings of "discards ‘const’ qualifier"
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; |