diff options
author | Jiří Klimeš <jklimes@redhat.com> | 2014-08-29 10:58:29 +0200 |
---|---|---|
committer | Jiří Klimeš <jklimes@redhat.com> | 2014-08-29 10:59:14 +0200 |
commit | d4f123ba2656f9ada8ca2b79ac773b6687df5272 (patch) | |
tree | bbcf1c88f134a94afb7ad4444fa9103cf20c6a86 | |
parent | ed325834f1fb1444f0805b3c40af16447ccfb32e (diff) | |
download | NetworkManager-th/bgo580018_autoconnect_priority-1.tar.gz |
fixup! cli: add nmc_property_set_int() functionth/bgo580018_autoconnect_priority-1
Revert "cli: add nmc_property_set_int() function"
This reverts commit 5fccb0bdc98ef9f79172878ead2fb32bf363949f.
-rw-r--r-- | clients/cli/settings.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/clients/cli/settings.c b/clients/cli/settings.c index 45c063e8a9..017887eb58 100644 --- a/clients/cli/settings.c +++ b/clients/cli/settings.c @@ -2043,26 +2043,6 @@ nmc_property_set_uint (NMSetting *setting, const char *prop, const char *val, GE } static gboolean -nmc_property_set_int (NMSetting *setting, const char *prop, const char *val, GError **error) -{ - long int val_int; - - g_return_val_if_fail (error == NULL || *error == NULL, FALSE); - - if (!nmc_string_to_int (val, TRUE, G_MININT, G_MAXINT, &val_int)) { - g_set_error (error, 1, 0, _("'%s' is not a valid number (or out of range)"), val); - return FALSE; - } - - /* Validate the number according to the property spec */ - if (!validate_int (setting, prop, (gint) val_int, error)) - return FALSE; - - g_object_set (setting, prop, (gint) val_int, NULL); - return TRUE; -} - -static gboolean nmc_property_set_bool (NMSetting *setting, const char *prop, const char *val, GError **error) { gboolean val_bool; |