diff options
author | Aki Niemi <aki.niemi@nokia.com> | 2009-08-23 23:19:03 +0300 |
---|---|---|
committer | Aki Niemi <aki.niemi@nokia.com> | 2009-08-23 23:19:03 +0300 |
commit | 5086088458306093e77833a90a2f64487ecf63cc (patch) | |
tree | 29026f209757809bd9ace747d072483b2a14f00e /gisi | |
parent | 5562438c5c37ef82a8691f2f0d78874e08f5e417 (diff) | |
download | ofono-5086088458306093e77833a90a2f64487ecf63cc.tar.gz |
gisi: Fix warning in g_isi_subscribe()
Save the GIsiModem instance in GIsiClient, so that calling
g_isi_subscribe() doesn't throw a warning.
Diffstat (limited to 'gisi')
-rw-r--r-- | gisi/client.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |