From 77b07ff2c10becd3223c2ed6a6052f61c826b5a1 Mon Sep 17 00:00:00 2001 From: Glenn Kasten Date: Thu, 12 Jan 2012 09:45:16 -0800 Subject: Fix build warning for void * arithmetic binder.c: In function 'bio_init': binder.c:415: warning: pointer of type 'void *' used in arithmetic Change-Id: I6926ad05e6dc7362331dffb6e8eca130955f25df --- cmds/servicemanager/binder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmds') diff --git a/cmds/servicemanager/binder.c b/cmds/servicemanager/binder.c index 918d4d4..1985756 100644 --- a/cmds/servicemanager/binder.c +++ b/cmds/servicemanager/binder.c @@ -412,7 +412,7 @@ void bio_init(struct binder_io *bio, void *data, return; } - bio->data = bio->data0 = data + n; + bio->data = bio->data0 = (char *) data + n; bio->offs = bio->offs0 = data; bio->data_avail = maxdata - n; bio->offs_avail = maxoffs; -- cgit v1.1