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);
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);
xmlfile=getenv("XMLFILE");
newxmlfile=g_strdup(document->href);
newxmldir=g_strdup(document->href);
- if (sep=strrchr(newxmldir,'/'))
+ if ((sep=strrchr(newxmldir,'/')))
*sep='\0';
else {
g_free(newxmldir);