[PATCH 3/3] Silence a compiler warning.

2011-01-06 Thread Ferenc Wagner
Signed-off-by: Ferenc Wagner --- packages/netcfg/dhcp.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/netcfg/dhcp.c b/packages/netcfg/dhcp.c index 385799b..ce93b26 100644 --- a/packages/netcfg/dhcp.c +++ b/packages/netcfg/dhcp.c @@ -133,8 +133,7 @@ stati

Re: [PATCH 3/3] Silence a compiler warning.

2011-01-06 Thread Ferenc Wagner
Ferenc Wagner writes: > -execvp("udhcpc", arguments); > +/* execvp doesn't like const strings for no reason, so we can > + cast away the const to suppress the compiler warning */ > +execvp("udhcpc", (char **)arguments); Actually, I started to fee

Re: [PATCH 3/3] Silence a compiler warning.

2011-01-06 Thread Matthew Palmer
On Fri, Jan 07, 2011 at 12:31:07AM +0100, Ferenc Wagner wrote: > Ferenc Wagner writes: > > > -execvp("udhcpc", arguments); > > +/* execvp doesn't like const strings for no reason, so we can > > + cast away the const to suppress the compiler warning */ > > +

Re: [PATCH 3/3] Silence a compiler warning.

2011-01-07 Thread Julien Cristau
On Fri, Jan 7, 2011 at 00:31:07 +0100, Ferenc Wagner wrote: > Ferenc Wagner writes: > > > -execvp("udhcpc", arguments); > > +/* execvp doesn't like const strings for no reason, so we can > > + cast away the const to suppress the compiler warning */ > > +

Re: [PATCH 3/3] Silence a compiler warning.

2011-01-07 Thread Samuel Thibault
Julien Cristau, le Fri 07 Jan 2011 12:00:40 +0100, a écrit : > On Fri, Jan 7, 2011 at 00:31:07 +0100, Ferenc Wagner wrote: > > Ferenc Wagner writes: > > > > > -execvp("udhcpc", arguments); > > > +/* execvp doesn't like const strings for no reason, so we can > > > +

Re: [PATCH 3/3] Silence a compiler warning.

2011-01-07 Thread Ferenc Wagner
Julien Cristau writes: > On Fri, Jan 7, 2011 at 00:31:07 +0100, Ferenc Wagner wrote: > >> Ferenc Wagner writes: >> >>> -execvp("udhcpc", arguments); >>> +/* execvp doesn't like const strings for no reason, so we can >>> + cast away the const to suppress th

Re: [PATCH 3/3] Silence a compiler warning.

2011-01-07 Thread Samuel Thibault
Ferenc Wagner, le Fri 07 Jan 2011 14:02:28 +0100, a écrit : >Due to a limitation of the ISO C >standard, it is not possible to state that idea in standard C. That's what I meant. More precisely, const int x; const int **ppx; int **z; ppx = z; *ppx