From 53e56d216c8116949ddcb8ab944118500d122524 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Mon, 22 Aug 2005 21:29:56 +0000 Subject: [PATCH] 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 --- src/NetworkManagerUtils.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/NetworkManagerUtils.c b/src/NetworkManagerUtils.c index 94b930c7cd..ab594be807 100644 --- a/src/NetworkManagerUtils.c +++ b/src/NetworkManagerUtils.c @@ -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 */