]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
data types: set static strings to be read-only
authorSami Kerola <kerolasa@iki.fi>
Mon, 22 Aug 2016 21:04:13 +0000 (22:04 +0100)
committerSami Kerola <kerolasa@iki.fi>
Wed, 24 Aug 2016 20:25:09 +0000 (21:25 +0100)
gtk.c
img/mtr_icon.xpm

diff --git a/gtk.c b/gtk.c
index 2a3d878a9e0f52e5b84548788076fafb7a372490..5513f1fe039c2346a2cfc83c8b3470faab1839c4 100644 (file)
--- a/gtk.c
+++ b/gtk.c
@@ -125,7 +125,7 @@ static gint Pause_clicked(UNUSED GtkWidget *Button, UNUSED gpointer data)
 
 static gint About_clicked(UNUSED GtkWidget *Button, UNUSED gpointer data) 
 {
-  gchar *authors[] = {
+  static const gchar *authors[] = {
         "Matt Kimball <mkimball@xmission.com>",
         "Roger Wolff <R.E.Wolff@BitWizard.nl>",
         "Bohdan Vlasyuk <bohdan@cec.vstu.vinnica.ua>",
index 5c809b7143c9db00b0ea180d33177f761748b6c3..e7141d2e8d89db79cf04b8fc8e5f5a41f36c3d37 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * mtr_icon[] = {
+static const char * mtr_icon[] = {
 "48 48 131 2",
 "      c #000000",
 ".     c #020204",