From 5086088458306093e77833a90a2f64487ecf63cc Mon Sep 17 00:00:00 2001 From: Aki Niemi Date: Sun, 23 Aug 2009 23:19:03 +0300 Subject: gisi: Fix warning in g_isi_subscribe() Save the GIsiModem instance in GIsiClient, so that calling g_isi_subscribe() doesn't throw a warning. --- gisi/client.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gisi') diff --git a/gisi/client.c b/gisi/client.c index 06454c49..0f5bfa12 100644 --- a/gisi/client.c +++ b/gisi/client.c @@ -41,6 +41,7 @@ struct _GIsiClient { uint8_t resource; + GIsiModem *modem; /* Requests */ int fd; @@ -99,6 +100,7 @@ GIsiClient *g_isi_client_create(GIsiModem *modem, uint8_t resource) abort(); cl = ptr; cl->resource = resource; + cl->modem = modem; memset(cl->timeout, 0, sizeof(cl->timeout)); for (i = 0; i < 256; i++) { cl->data[i] = cl->ind.data[i] = NULL; @@ -288,7 +290,7 @@ static int g_isi_indication_init(GIsiClient *cl) uint8_t msg[] = { 0, PNS_SUBSCRIBED_RESOURCES_IND, 1, cl->resource, }; - GIOChannel *channel = phonet_new(NULL, PN_COMMGR); + GIOChannel *channel = phonet_new(cl->modem, PN_COMMGR); if (channel == NULL) return errno; -- cgit v1.2.1