From 714bf0e9cdf597bbbdd29ac9e448ad7c16882e3d Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Mon, 26 Feb 2007 21:19:41 +0000 Subject: Minor cleanup to for-loop --- hcid/storage.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/hcid/storage.c b/hcid/storage.c index be46cdd6..9e2f819b 100644 --- a/hcid/storage.c +++ b/hcid/storage.c @@ -495,7 +495,7 @@ static GSList *service_string_to_list(char *services) char *start = services; int i, finished = 0; - for (i = 0; ; i++) { + for (i = 0; !finished; i++) { if (services[i] == '\0') finished = 1; @@ -504,9 +504,6 @@ static GSList *service_string_to_list(char *services) l = g_slist_append(l, start); start = services + i + 1; } - - if (finished) - break; } return l; -- cgit