Signed-off-by: Ferenc Wagner <wf...@niif.hu> --- 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 @@ static void dhcp_client_sigchld(int sig __attribute__ ((unused))) int start_dhcp_client (struct debconfclient *client, char* dhostname) { FILE *dc = NULL; - const char **ptr; - char **arguments; + const char **ptr, **arguments; int options_count; enum { DHCLIENT, PUMP, UDHCPC } dhcp_client; int dhcp_seconds; @@ -232,7 +231,9 @@ int start_dhcp_client (struct debconfclient *client, char* dhostname) arguments[options_count] = NULL; - 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); free(arguments); break; } -- 1.7.2.3 -- To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/494d12e656ca3be61fda81d31ee75ea5ee363634.1294344443.git.wf...@niif.hu