summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-04-24 09:15:59 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-04-24 10:13:33 +0200
commitfeb7d7a212df6b29bbc97865f08ce840a9e2ad94 (patch)
tree65ccd64615abecee1f11202d78c2651ae00b30b9
parentc13f4643f4326b007a7baf85298f03a85ee48a78 (diff)
downloadsystemd-feb7d7a212df6b29bbc97865f08ce840a9e2ad94.tar.gz
dhcp6: make string argument to sd_dhcp6_client_set_request_mud_url() const
-rw-r--r--src/libsystemd-network/sd-dhcp6-client.c2
-rw-r--r--src/systemd/sd-dhcp6-client.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libsystemd-network/sd-dhcp6-client.c b/src/libsystemd-network/sd-dhcp6-client.c
index 6c017e0ff9..99f38382e9 100644
--- a/src/libsystemd-network/sd-dhcp6-client.c
+++ b/src/libsystemd-network/sd-dhcp6-client.c
@@ -382,7 +382,7 @@ int sd_dhcp6_client_set_request_option(sd_dhcp6_client *client, uint16_t option)
return 0;
}
-int sd_dhcp6_client_set_request_mud_url(sd_dhcp6_client *client, char *mudurl) {
+int sd_dhcp6_client_set_request_mud_url(sd_dhcp6_client *client, const char *mudurl) {
assert_return(client, -EINVAL);
assert_return(client->state == DHCP6_STATE_STOPPED, -EBUSY);
diff --git a/src/systemd/sd-dhcp6-client.h b/src/systemd/sd-dhcp6-client.h
index 42d4ec752c..091f8287ec 100644
--- a/src/systemd/sd-dhcp6-client.h
+++ b/src/systemd/sd-dhcp6-client.h
@@ -123,7 +123,7 @@ int sd_dhcp6_client_set_request_option(
uint16_t option);
int sd_dhcp6_client_set_request_mud_url(
sd_dhcp6_client *client,
- char *mudurl);
+ const char *mudurl);
int sd_dhcp6_client_set_prefix_delegation_hint(
sd_dhcp6_client *client,
uint8_t prefixlen,