diff options
author | Tom Gundersen <teg@jklm.no> | 2014-11-01 19:02:44 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-11-01 19:02:44 +0100 |
commit | 1caa12d0a8a818d5f2545aab809b3fdfec73871d (patch) | |
tree | b125e9822a152ddbe253cf1c852cf65ee2dd8871 /src/libsystemd-network/dhcp-lease-internal.h | |
parent | bab47929613f9e930dd241a01483b37d14b59c69 (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.h | 2 |
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 { |