Re: [Qemu-devel] [PATCH] osdep: pass const char pointer to setsockopt

2013-03-06 Thread Lei Li
On 03/06/2013 09:16 PM, Stefan Hajnoczi wrote: On Wed, Mar 06, 2013 at 09:07:25PM +0800, Lei Li wrote: On 03/06/2013 05:56 PM, Stefan Hajnoczi wrote: On Tue, Mar 05, 2013 at 05:51:21PM +0800, Lei Li wrote: Pass the right type for setsockopt(), and this will also fix the compiler warning when c

Re: [Qemu-devel] [PATCH] osdep: pass const char pointer to setsockopt

2013-03-06 Thread Stefan Hajnoczi
On Wed, Mar 06, 2013 at 09:07:25PM +0800, Lei Li wrote: > On 03/06/2013 05:56 PM, Stefan Hajnoczi wrote: > >On Tue, Mar 05, 2013 at 05:51:21PM +0800, Lei Li wrote: > >>Pass the right type for setsockopt(), and this will also > >>fix the compiler warning when cross build for qemu-ga.exe: > >> > >>ut

Re: [Qemu-devel] [PATCH] osdep: pass const char pointer to setsockopt

2013-03-06 Thread Lei Li
On 03/06/2013 04:59 PM, Markus Armbruster wrote: Lei Li writes: Pass the right type for setsockopt(), and this will also fix the compiler warning when cross build for qemu-ga.exe: util/osdep.c: In function 'socket_set_nodelay': util/osdep.c:69:5: warning: passing argument 4 of 'setsockopt' fr

Re: [Qemu-devel] [PATCH] osdep: pass const char pointer to setsockopt

2013-03-06 Thread Lei Li
On 03/06/2013 05:56 PM, Stefan Hajnoczi wrote: On Tue, Mar 05, 2013 at 05:51:21PM +0800, Lei Li wrote: Pass the right type for setsockopt(), and this will also fix the compiler warning when cross build for qemu-ga.exe: util/osdep.c: In function 'socket_set_nodelay': util/osdep.c:69:5: warning:

Re: [Qemu-devel] [PATCH] osdep: pass const char pointer to setsockopt

2013-03-06 Thread Stefan Hajnoczi
On Tue, Mar 05, 2013 at 05:51:21PM +0800, Lei Li wrote: > Pass the right type for setsockopt(), and this will also > fix the compiler warning when cross build for qemu-ga.exe: > > util/osdep.c: In function 'socket_set_nodelay': > util/osdep.c:69:5: warning: passing argument 4 of 'setsockopt' from

Re: [Qemu-devel] [PATCH] osdep: pass const char pointer to setsockopt

2013-03-06 Thread Markus Armbruster
Lei Li writes: > Pass the right type for setsockopt(), and this will also > fix the compiler warning when cross build for qemu-ga.exe: > > util/osdep.c: In function 'socket_set_nodelay': > util/osdep.c:69:5: warning: passing argument 4 of 'setsockopt' from >incompatible pointe

[Qemu-devel] [PATCH] osdep: pass const char pointer to setsockopt

2013-03-05 Thread Lei Li
Pass the right type for setsockopt(), and this will also fix the compiler warning when cross build for qemu-ga.exe: util/osdep.c: In function 'socket_set_nodelay': util/osdep.c:69:5: warning: passing argument 4 of 'setsockopt' from incompatible pointer type [enabled by default]