summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2012-06-05 17:50:45 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2012-06-05 17:50:45 -0700
commit94c5e76c2d1043a835b0872f78902ebdfc3c5492 (patch)
tree3ab166b348836eaa8de6d134d7eb82dbf3fc37ca
parent83a7600ae9dbe8b2ca0f9199222245792fb8c0d6 (diff)
Add const qualifiers to fix gcc -Wwrite-strings warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--ico.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ico.c b/ico.c
index 797aeba..0d5ad47 100644
--- a/ico.c
+++ b/ico.c
@@ -174,7 +174,7 @@ static Atom wm_delete_window;
* any additional threads are created
*/
-static char *Primaries[] = {
+static const char *Primaries[] = {
"red", "green", "blue", "yellow", "cyan", "magenta"
};
#define NumberPrimaries 6
@@ -219,7 +219,7 @@ static const char *ProgramName; /* argv[0] */
static const char *geom = NULL; /* -geometry: window geometry */
static int useRoot = 0; /* -r */
static int dash = 0; /* -d: dashed line pattern */
-static char **colornames; /* -colors (points into argv) */
+static const char **colornames; /* -colors (points into argv) */
#ifdef MULTIBUFFER
static int update_action = MultibufferUpdateActionBackground;
#endif
@@ -798,7 +798,7 @@ initDBufs(struct closure *closure, int fg, int bg, int planesperbuf)
}
static void
-setBufColname(struct closure *closure, int n, char *colname)
+setBufColname(struct closure *closure, int n, const char *colname)
{
int t;
XColor dcolor, color;
@@ -1147,7 +1147,7 @@ findpoly(const char *name)
icoFatal("can't find object %s", name);
}
-int main(int argc, char **argv)
+int main(int argc, const char **argv)
{
const char *display = NULL;
#ifdef MULTIBUFFER