mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-04 06:20:17 +01:00
ifcfg-rh: change type of svTrueValue() return value and argument
Change type of return value and 'def' argument of svTrueValue() to gint to make clear that it can be something different from TRUE and FALSE.
This commit is contained in:
parent
a86255a043
commit
862fd91df0
2 changed files with 4 additions and 4 deletions
|
|
@ -303,11 +303,11 @@ svGetValueFull (shvarFile *s, const char *key, gboolean verbatim)
|
|||
* return FALSE if <key> resolves to any non-truth value (e.g. "no", "n", "false")
|
||||
* return <default> otherwise
|
||||
*/
|
||||
gboolean
|
||||
svTrueValue (shvarFile *s, const char *key, gboolean def)
|
||||
gint
|
||||
svTrueValue (shvarFile *s, const char *key, gint def)
|
||||
{
|
||||
char *tmp;
|
||||
gboolean returnValue = def;
|
||||
gint returnValue = def;
|
||||
|
||||
tmp = svGetValue (s, key, FALSE);
|
||||
if (!tmp)
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ char *svGetValueFull (shvarFile *s, const char *key, gboolean verbatim);
|
|||
* return FALSE if <key> resolves to any non-truth value (e.g. "no", "n", "false")
|
||||
* return <def> otherwise
|
||||
*/
|
||||
gboolean svTrueValue (shvarFile *s, const char *key, gboolean def);
|
||||
gint svTrueValue (shvarFile *s, const char *key, gint def);
|
||||
|
||||
gint64 svGetValueInt64 (shvarFile *s, const char *key, guint base, gint64 min, gint64 max, gint64 fallback);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue