From 585ef84379e5f5187a27c2ec8172a2e9e94457e7 Mon Sep 17 00:00:00 2001 From: Maciek Borzecki Date: Sun, 18 Jan 2015 18:57:30 +0100 Subject: [PATCH] telephony: make string array const to avoid C warning --- src/telephony.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/telephony.vala b/src/telephony.vala index 09a4e99..1093cb1 100644 --- a/src/telephony.vala +++ b/src/telephony.vala @@ -57,7 +57,7 @@ class TelephonyHandler : Object, PacketHandlerInterface { GLib.message("call from %s, status %s", number, ev); // handle only missed call and ringing events - string[] accepted_events = {"ringing", "missedCall"}; + const string[] accepted_events = {"ringing", "missedCall"}; if (ev in accepted_events) { string summary = "Other event";