From 0d1d0b501892e9d9d42192c0483fd7ff63935dda Mon Sep 17 00:00:00 2001 From: Rusty Lynch Date: Thu, 16 Aug 2012 10:41:24 -0700 Subject: [PATCH] small code cleanup --- main.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/main.c b/main.c index f378c2d..6e3715b 100644 --- a/main.c +++ b/main.c @@ -191,8 +191,7 @@ dial_reply(void *data, DBusMessage *reply, DBusError *error) } } - -/* libwebsocket callback for 'protocol-app-list' based websockets */ +/* libwebsocket callback for the 'protocol-dialer' protocol */ static int callback_dialer(struct libwebsocket_context *context, struct libwebsocket *wsi, @@ -210,7 +209,6 @@ callback_dialer(struct libwebsocket_context *context, * protocol we ignore the 'in' paramter and send out * the pending event queue */ - case LWS_CALLBACK_ESTABLISHED: if (in) { unsigned char *b = malloc(LWS_SEND_BUFFER_PRE_PADDING + strlen((char *)in) + @@ -584,7 +582,6 @@ get_modems_reply(void *data, DBusMessage *reply, DBusError *error) } } - static struct option options[] = { { "help", no_argument, NULL, 'h' }, { "port", required_argument, NULL, 'p' }, @@ -642,7 +639,6 @@ int main(int argc, char **argv) ); e_dbus_message_send(bus, msg, get_modems_reply, -1, NULL); - /* Listen for updates on application desktop files*/ fd = inotify_init(); inotify_add_watch(fd, APPDIR, IN_CREATE | IN_DELETE | IN_MODIFY); -- 2.7.4