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
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
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 */
> > +
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 */
> > +
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
> > > +
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
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
7 matches
Mail list logo