From 2eb5457326dc9b0f6f8934d5b446f7e38273830a Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Sun, 1 Feb 2009 06:56:09 +1100 Subject: [PATCH] Fix breakage caused by removal of attempt to close channels at shutdown. commit 98a0c4c761f28ebc47e46b0760cc3dba2939da84 removed some code but left unused bits that cause warning. So move the "int i" inside the "#if 0" and hide dbus_signal_send_deactivate as well. Signed-off-by: NeilBrown --- src/gsm0710muxd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gsm0710muxd.c b/src/gsm0710muxd.c index b11cc39..0e5b88e 100644 --- a/src/gsm0710muxd.c +++ b/src/gsm0710muxd.c @@ -805,6 +805,7 @@ static int dbus_deinit() return 0; } +#if 0 static int dbus_signal_send_deactivate(const char* sigvalue) { DBusConnection* conn = dbus_g_connection_get_connection(g_conn); @@ -839,6 +840,7 @@ static int dbus_signal_send_deactivate(const char* sigvalue) dbus_message_unref(msg); return 0; } +#endif /** GPtrArray *table = parse("(14-5),(3-7),(4-9),(33)"); @@ -1764,11 +1766,11 @@ static int close_devices() LOG(LOG_DEBUG, "Enter"); g_source_remove(serial.g_source); serial.g_source = -1; - int i; // don't bother closing the channels over the MUX protocol, first off, // the mainloop is no longer running anyways, second, we're about to // shutdown the modem completely in a second. #if 0 + int i; for (i=1;i