all: use "int/char" instead of "gint/gchar" typedefs

This is also recommended by our checkpatch.pl script.

(cherry picked from commit 2929392855)
This commit is contained in:
Thomas Haller
2020-05-08 12:54:17 +02:00
parent 1b551ad1c3
commit 747f7d3818
3 changed files with 4 additions and 4 deletions

View File

@@ -856,7 +856,7 @@ nm_setting_sriov_get_autoprobe_drivers (NMSettingSriov *setting)
return setting->autoprobe_drivers;
}
static gint
static int
vf_index_compare (gconstpointer a, gconstpointer b)
{
NMSriovVF *vf_a = *(NMSriovVF **) a;

View File

@@ -454,7 +454,7 @@ _context_object_new_do_cb (GObject *source_object,
static GObject *
_context_object_new_do (GType gtype,
gboolean sync,
const gchar *first_property_name,
const char *first_property_name,
va_list var_args)
{
gs_free_error GError *error = NULL;

View File

@@ -431,8 +431,8 @@ make_connection_setting (const char *file,
(int) svGetValueInt64 (ifcfg, "AUTOCONNECT_RETRIES", 10,
-1, G_MAXINT32, -1),
NM_SETTING_CONNECTION_MULTI_CONNECT,
(gint) svGetValueInt64 (ifcfg, "MULTI_CONNECT", 10,
G_MININT32, G_MAXINT32, NM_CONNECTION_MULTI_CONNECT_DEFAULT),
(int) svGetValueInt64 (ifcfg, "MULTI_CONNECT", 10,
G_MININT32, G_MAXINT32, NM_CONNECTION_MULTI_CONNECT_DEFAULT),
NM_SETTING_CONNECTION_AUTOCONNECT_SLAVES,
svGetValueBoolean (ifcfg, "AUTOCONNECT_SLAVES", NM_SETTING_CONNECTION_AUTOCONNECT_SLAVES_DEFAULT),
NM_SETTING_CONNECTION_LLDP, lldp,