summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-02-26 21:19:41 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-02-26 21:19:41 +0000
commit714bf0e9cdf597bbbdd29ac9e448ad7c16882e3d (patch)
treebc6be68478107fcea9d2dd8a643e6baefba0fe63
parentbef6ddaf341287846fc39556265e100b467223bd (diff)
Minor cleanup to for-loop
-rw-r--r--hcid/storage.c5
1 files changed, 1 insertions, 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;