summaryrefslogtreecommitdiff
path: root/src/actions.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2019-09-05 12:02:59 +0200
committerlukefromdc <[email protected]>2019-09-08 19:35:20 +0000
commit4fb087c731af5282dc817bfc8350afe325eef532 (patch)
treeffc3f2b3660a8937085135062d7ff1b34846a73f /src/actions.c
parenta837a98bf1d2b82b4ac7b773b892d9a411e19e77 (diff)
downloadengrampa-4fb087c731af5282dc817bfc8350afe325eef532.tar.bz2
engrampa-4fb087c731af5282dc817bfc8350afe325eef532.tar.xz
Initialization discards ‘const’ qualifier from pointer target type
Remove 317 warnings [-Wdiscarded-qualifiers].
Diffstat (limited to 'src/actions.c')
-rw-r--r--src/actions.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/actions.c b/src/actions.c
index bbb88f1..fee89d5 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -122,7 +122,7 @@ get_full_uri (DlgNewData *data)
idx = egg_file_format_chooser_get_format (EGG_FILE_FORMAT_CHOOSER (data->format_chooser), uri);
if (idx > 0) {
const char *uri_ext;
- char *default_ext;
+ const char *default_ext;
uri_ext = get_archive_filename_extension (uri);
default_ext = mime_type_desc[data->supported_types[idx-1]].default_ext;
@@ -209,7 +209,7 @@ get_archive_filename_from_selector (DlgNewData *data)
if (get_archive_filename_extension (uri) == NULL) {
int idx;
char *new_uri;
- char *ext = NULL;
+ const char *ext = NULL;
idx = egg_file_format_chooser_get_format (EGG_FILE_FORMAT_CHOOSER (data->format_chooser), uri);
if (idx > 0)