mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-05-13 08:39:17 +08:00
mcast01: Fix write to read-only string
This commit is contained in:
parent
c99a1ab00e
commit
e58e549728
@ -78,14 +78,15 @@ typedef struct {
|
||||
} iface_binding;
|
||||
|
||||
static void
|
||||
set_mcast_route(const char *iface_name)
|
||||
set_mcast_route(char *iface_name)
|
||||
{
|
||||
static char net[] = "224.0.0.0/4";
|
||||
int exit_code;
|
||||
char *route[] = {
|
||||
"route",
|
||||
"add",
|
||||
"-net",
|
||||
"224.0.0.0/4",
|
||||
net,
|
||||
"-iface",
|
||||
iface_name,
|
||||
NULL
|
||||
|
Loading…
x
Reference in New Issue
Block a user