diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2007-02-26 21:19:41 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2007-02-26 21:19:41 +0000 |
commit | 714bf0e9cdf597bbbdd29ac9e448ad7c16882e3d (patch) | |
tree | bc6be68478107fcea9d2dd8a643e6baefba0fe63 /hcid/storage.c | |
parent | bef6ddaf341287846fc39556265e100b467223bd (diff) |
Minor cleanup to for-loop
Diffstat (limited to 'hcid/storage.c')
-rw-r--r-- | hcid/storage.c | 5 |
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; |