summaryrefslogtreecommitdiff
path: root/src/libsystemd-network/network-internal.h
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/network-internal.h
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/network-internal.h')
-rw-r--r--src/libsystemd-network/network-internal.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsystemd-network/network-internal.h b/src/libsystemd-network/network-internal.h
index dca82646ce..d5d4ef42f2 100644
--- a/src/libsystemd-network/network-internal.h
+++ b/src/libsystemd-network/network-internal.h
@@ -77,5 +77,5 @@ struct sd_dhcp_route;
void serialize_dhcp_routes(FILE *f, const char *key, struct sd_dhcp_route *routes, size_t size);
int deserialize_dhcp_routes(struct sd_dhcp_route **ret, size_t *ret_size, size_t *ret_allocated, const char *string);
-int serialize_dhcp_option(FILE *f, const char *key, const uint8_t *data, size_t size);
-int deserialize_dhcp_option(uint8_t **data, size_t *data_len, const char *string);
+int serialize_dhcp_option(FILE *f, const char *key, const void *data, size_t size);
+int deserialize_dhcp_option(void **data, size_t *data_len, const char *string);