mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-08 22:20:19 +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.
(cherry picked from commit 862fd91df0)
This commit is contained in:
parent
afd1bf5642
commit
1ab766b61b
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