icoutils/0015-icotool-main.c-Fix-const-correctness-of-short-option.patch
Richard W.M. Jones 86a1ed311e Add a series of upstream patches to enable compiler warnings and
fix multiple issues.

Revert one of the checks which breaks processing of PE binaries.

Removed the 'Group' line, not needed with modern Fedora/RPM.
2017-03-10 12:18:04 +00:00

28 lines
794 B
Diff

From 9f7acd55ae6fee626563ae2c194522f7f74e47b0 Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Thu, 9 Mar 2017 14:20:09 +0000
Subject: [PATCH 15/26] icotool/main.c: Fix const-correctness of short options
string.
Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
---
icotool/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/icotool/main.c b/icotool/main.c
index ec63017..271a5ee 100644
--- a/icotool/main.c
+++ b/icotool/main.c
@@ -66,7 +66,7 @@ enum {
CURSOR_OPT,
};
-static char *short_opts = "xlco:i:w:h:p:b:X:Y:t:r:";
+static const char *short_opts = "xlco:i:w:h:p:b:X:Y:t:r:";
static struct option long_opts[] = {
{ "extract", no_argument, NULL, 'x' },
{ "list", no_argument, NULL, 'l' },
--
2.10.2