summaryrefslogtreecommitdiff
path: root/src/libsystemd-network/sd-dhcp-server.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-08-26 23:05:34 +0200
committerLennart Poettering <lennart@poettering.net>2015-08-26 23:05:34 +0200
commite473522841f630bfd25725b06605462e5e30587f (patch)
tree85ea8fd6127e4cb636ec6a07453bdc147d938b22 /src/libsystemd-network/sd-dhcp-server.c
parent89ca10c6a61309d84d54c5dc5a295387ce39e610 (diff)
dhcp: generic data should be void*, not uint8_t*
If we handly arbitrary data we should use "void*" pointers, not "uint8_t*", how go intended C to be used.
Diffstat (limited to 'src/libsystemd-network/sd-dhcp-server.c')
-rw-r--r--src/libsystemd-network/sd-dhcp-server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-network/sd-dhcp-server.c b/src/libsystemd-network/sd-dhcp-server.c
index df74d9f3ae..968df1f43d 100644
--- a/src/libsystemd-network/sd-dhcp-server.c
+++ b/src/libsystemd-network/sd-dhcp-server.c
@@ -550,7 +550,7 @@ static int server_send_forcerenew(sd_dhcp_server *server, be32_t address,
return 0;
}
-static int parse_request(uint8_t code, uint8_t len, const uint8_t *option,
+static int parse_request(uint8_t code, uint8_t len, const void *option,
void *userdata) {
DHCPRequest *req = userdata;