mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-04-21 03:00:41 +02:00
core/trivial: clearify code comment on error for nm_utils_ascii_str_to_int64()
Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
parent
efc72c996f
commit
2b3ef7664f
2 changed files with 7 additions and 6 deletions
|
|
@ -864,12 +864,13 @@ nm_utils_match_connection (GSList *connections,
|
|||
*
|
||||
* A wrapper for g_ascii_strtoll, that checks whether the whole string
|
||||
* can be successfully converted to a number and is within a given
|
||||
* range. On any error, @fallback will be returned and @errno will be set
|
||||
* to a non-zero value. Check @errno for errors. Any trailing or leading
|
||||
* (ascii) white space is ignored and the functions is locale independent.
|
||||
* range. On any error, @fallback will be returned and %errno will be set
|
||||
* to a non-zero value. On success, %errno will be set to zero, check %errno
|
||||
* for errors. Any trailing or leading (ascii) white space is ignored and the
|
||||
* functions is locale independent.
|
||||
*
|
||||
* The function is guaranteed to return a value between @min and @max
|
||||
* (included) or @fallback. Also, the parsing is rather strict, it does
|
||||
* (inclusive) or @fallback. Also, the parsing is rather strict, it does
|
||||
* not allow for any unrecognized characters, except leading and trailing
|
||||
* white space.
|
||||
**/
|
||||
|
|
|
|||
|
|
@ -274,8 +274,8 @@ nm_platform_sysctl_get (const char *path)
|
|||
* as decimal integer.
|
||||
*
|
||||
* Returns: contents of the sysctl file parsed as s32 integer, or
|
||||
* @fallback on error. Also, on error, @errno will be set to a non-zero
|
||||
* value.
|
||||
* @fallback on error. On error, %errno will be set to a non-zero
|
||||
* value, on success %errno will be set to zero.
|
||||
*/
|
||||
gint32
|
||||
nm_platform_sysctl_get_int32 (const char *path, gint32 fallback)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue