summaryrefslogtreecommitdiff
path: root/src/libsystemd-network/dhcp-lease-internal.h
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-11-01 19:02:44 +0100
committerTom Gundersen <teg@jklm.no>2014-11-01 19:02:44 +0100
commit1caa12d0a8a818d5f2545aab809b3fdfec73871d (patch)
treeb125e9822a152ddbe253cf1c852cf65ee2dd8871 /src/libsystemd-network/dhcp-lease-internal.h
parentbab47929613f9e930dd241a01483b37d14b59c69 (diff)
sd-dhcp-lease: use shared default prefixlen function
Also change the default prefixlen function to only access the first octet of the in_addr.
Diffstat (limited to 'src/libsystemd-network/dhcp-lease-internal.h')
-rw-r--r--src/libsystemd-network/dhcp-lease-internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-network/dhcp-lease-internal.h b/src/libsystemd-network/dhcp-lease-internal.h
index d4675f3e47..9fb4f4b4e4 100644
--- a/src/libsystemd-network/dhcp-lease-internal.h
+++ b/src/libsystemd-network/dhcp-lease-internal.h
@@ -35,7 +35,7 @@
struct sd_dhcp_route {
struct in_addr dst_addr;
struct in_addr gw_addr;
- uint8_t dst_prefixlen;
+ unsigned char dst_prefixlen;
};
struct sd_dhcp_lease {