mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-26 05:08:17 +02:00
Fix typo, and use constant instead of -1 (more readable)
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@896 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
parent
a629f4cbc8
commit
53e56d216c
1 changed files with 3 additions and 3 deletions
|
|
@ -681,7 +681,7 @@ static void nm_v_wait_for_completion_or_timeout(
|
|||
|
||||
/* #define NM_SLEEP_DEBUG */
|
||||
#ifdef NM_SLEEP_DEBUG
|
||||
syslog (LOG_INFO, "sleeping or %d usecs", interval_usecs);
|
||||
syslog (LOG_INFO, "sleeping for %d usecs", interval_usecs);
|
||||
#endif
|
||||
g_usleep(interval_usecs);
|
||||
if (action_func)
|
||||
|
|
@ -723,8 +723,8 @@ void nm_wait_for_timeout(
|
|||
nm_completion_func action_func,
|
||||
nm_completion_args args)
|
||||
{
|
||||
nm_v_wait_for_completion_or_timeout(-1, max_time, interval_usecs,
|
||||
test_func, action_func, args);
|
||||
nm_v_wait_for_completion_or_timeout(NM_COMPLETION_TRIES_INFINITY, max_time,
|
||||
interval_usecs, test_func, action_func, args);
|
||||
}
|
||||
|
||||
/* you can use these, but they're really just examples */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue