summaryrefslogtreecommitdiff
path: root/navit/maptool/boundaries.c
diff options
context:
space:
mode:
authorrikky <rikky@ffa7fe5e-494d-0410-b361-a75ebd5db220>2011-02-12 00:30:38 +0000
committerrikky <rikky@ffa7fe5e-494d-0410-b361-a75ebd5db220>2011-02-12 00:30:38 +0000
commit00df53e5961a431644635b0f34234215e4bd9dd5 (patch)
tree73d47c5fea34134a2adb3e60883e39ae83d27eb6 /navit/maptool/boundaries.c
parentdaed7ad47d7f322cfe4df0d270ac6480865566e4 (diff)
downloadnavit-svn-00df53e5961a431644635b0f34234215e4bd9dd5.tar.gz
Fix:core:Fix clang compiler warnings: Add missing parentheses
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@4142 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/maptool/boundaries.c')
-rw-r--r--navit/maptool/boundaries.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/navit/maptool/boundaries.c b/navit/maptool/boundaries.c
index 439e02b4..92688517 100644
--- a/navit/maptool/boundaries.c
+++ b/navit/maptool/boundaries.c
@@ -101,7 +101,7 @@ test(GList *boundaries_list)
struct item_bin *ib;
FILE *f=fopen("country_276.bin.unsorted","r");
printf("start\n");
- while (ib=read_item(f)) {
+ while ((ib=read_item(f))) {
struct coord *c=(struct coord *)(ib+1);
char *name=item_bin_get_attr(ib, attr_town_name, NULL);
printf("%s:",name);
@@ -148,7 +148,7 @@ process_boundaries(FILE *boundaries, FILE *ways)
member_hash=g_hash_table_new_full(boundary_member_hash, boundary_member_equal, NULL, NULL);
boundaries_list=build_boundaries(boundaries);
- while (ib=read_item(ways)) {
+ while ((ib=read_item(ways))) {
long long *wayid=item_bin_get_attr(ib, attr_osm_wayid, NULL);
if (wayid) {
GList *l=g_hash_table_lookup(member_hash, wayid);