diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2012-01-05 08:16:08 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-01-05 08:55:18 -0800 |
commit | c544226334ec1bfaac1c8d649722bb17728606e1 (patch) | |
tree | 87a9990dfe6f76d77a27f4adbe4c0b500e943ef7 /info.c | |
parent | 3d75c73f3677d98682b31766334ab02f124c76b9 (diff) | |
download | subsurface-c544226334ec1bfaac1c8d649722bb17728606e1.tar.gz |
Avoiding some potentially confusing name space clashes
We have local variables or function arguments with the same names as
function static variables (or in one case, function arguments).
While all the current code was correct, it could potentially cause
confusion when chasing bugs or reviewing patches. This should make things
clearer.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'info.c')
-rw-r--r-- | info.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -258,13 +258,13 @@ void add_location(const char *string) static int get_rating(const char *string) { - int rating = 0; + int rating_val = 0; int i; for (i = 0; i <= 5; i++) if (!strcmp(star_strings[i],string)) - rating = i; - return rating; + rating_val = i; + return rating_val; } struct dive_info { |