diff options
author | Thomas Haller <thaller@redhat.com> | 2017-02-23 12:17:42 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2017-02-23 12:33:41 +0100 |
commit | 434e7b2aa36d8bd5d9988276ae126ae8d646bbcd (patch) | |
tree | 8445bb08f73f9823f341c505ff2e3a1af4ca7959 /src/ppp | |
parent | 20b17910d04e2ba09891b09e59bb221c426a43fd (diff) | |
download | NetworkManager-434e7b2aa36d8bd5d9988276ae126ae8d646bbcd.tar.gz |
modem: cleanup integer types for ppp-stats signalth/modem-signal-cleanup
In practice, guint32 is identical to guint. However, that is not
guaranteed, and we should keep the types separate.
Diffstat (limited to 'src/ppp')
-rw-r--r-- | src/ppp/nm-ppp-manager.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ppp/nm-ppp-manager.c b/src/ppp/nm-ppp-manager.c index bb7821e97b..010866ff65 100644 --- a/src/ppp/nm-ppp-manager.c +++ b/src/ppp/nm-ppp-manager.c @@ -150,8 +150,8 @@ monitor_cb (gpointer user_data) _LOGW ("could not read ppp stats: %s", strerror (errno)); } else { g_signal_emit (manager, signals[STATS], 0, - stats.p.ppp_ibytes, - stats.p.ppp_obytes); + (guint) stats.p.ppp_ibytes, + (guint) stats.p.ppp_obytes); } return TRUE; @@ -1277,7 +1277,8 @@ nm_ppp_manager_class_init (NMPPPManagerClass *manager_class) 0, NULL, NULL, NULL, G_TYPE_NONE, 2, - G_TYPE_UINT, G_TYPE_UINT); + G_TYPE_UINT /*guint32 in_bytes*/, + G_TYPE_UINT /*guint32 out_bytes*/); nm_exported_object_class_add_interface (NM_EXPORTED_OBJECT_CLASS (manager_class), NMDBUS_TYPE_PPP_MANAGER_SKELETON, |