summaryrefslogtreecommitdiff
path: root/legacy/edbus
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2012-09-21 22:44:11 +0000
committerLucas De Marchi <lucas.demarchi@profusion.mobi>2012-09-21 22:44:11 +0000
commit3cf641890617f51b39886476e5dd1bd10117ca0a (patch)
tree08fa4086dc9e6ed0bfaf9afb8bd9e0cc6f641950 /legacy/edbus
parent97fc82b5ff50208d65c6f583d55ed95f3dd18b6b (diff)
edbus: Reduce variable scope and add const where it's
due SVN revision: 77006
Diffstat (limited to 'legacy/edbus')
-rw-r--r--legacy/edbus/src/lib/edbus_signal_handler.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/legacy/edbus/src/lib/edbus_signal_handler.c b/legacy/edbus/src/lib/edbus_signal_handler.c
index f5192dbba7..e82aba0204 100644
--- a/legacy/edbus/src/lib/edbus_signal_handler.c
+++ b/legacy/edbus/src/lib/edbus_signal_handler.c
@@ -79,8 +79,7 @@ EAPI Eina_Bool
79edbus_signal_handler_match_extra_set(EDBus_Signal_Handler *sh, ...) 79edbus_signal_handler_match_extra_set(EDBus_Signal_Handler *sh, ...)
80{ 80{
81 va_list ap; 81 va_list ap;
82 char *key = NULL, *read; 82 const char *key = NULL, *read;
83 Signal_Argument *arg;
84 DBusError err; 83 DBusError err;
85 84
86 EDBUS_SIGNAL_HANDLER_CHECK_RETVAL(sh, EINA_FALSE); 85 EDBUS_SIGNAL_HANDLER_CHECK_RETVAL(sh, EINA_FALSE);
@@ -93,6 +92,8 @@ edbus_signal_handler_match_extra_set(EDBus_Signal_Handler *sh, ...)
93 va_start(ap, sh); 92 va_start(ap, sh);
94 for (read = va_arg(ap, char *); read; read = va_arg(ap, char *)) 93 for (read = va_arg(ap, char *); read; read = va_arg(ap, char *))
95 { 94 {
95 Signal_Argument *arg;
96
96 if (!key) 97 if (!key)
97 { 98 {
98 key = read; 99 key = read;