libnm: fix range of MTU property to uint32 for ip-tunnel

This should make no difference, because commonly guint32
is a typedef for guint/unsigned and has the same range.
This commit is contained in:
Thomas Haller 2019-04-05 12:29:40 +02:00
parent 47412936c2
commit c422fc06b0

View file

@ -60,7 +60,7 @@ typedef struct {
char *output_key;
guint encapsulation_limit;
guint flow_label;
guint mtu;
guint32 mtu;
guint32 flags;
} NMSettingIPTunnelPrivate;
@ -819,7 +819,7 @@ nm_setting_ip_tunnel_class_init (NMSettingIPTunnelClass *klass)
**/
obj_properties[PROP_MTU] =
g_param_spec_uint (NM_SETTING_IP_TUNNEL_MTU, "", "",
0, G_MAXUINT, 0,
0, G_MAXUINT32, 0,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT |
NM_SETTING_PARAM_FUZZY_IGNORE |