Skip to contentSkip to conversation

tabled: use correct name for zone attribute

PATCH In review Pete Zaitcev 1 participant 1 message Aug 29, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 2/3 tabled: use correct name for zone attribute

We're such a young project and we have legacy arrangements already. In particular what's used to be called a "building" is now a "zone", for the benefit of users running their clouds out of missile silos, huts, tents, vehicles, etc.

Jokes aside, the patch makes tabled to use the correct name that corresponds to what Chunk publishes.

server/storparse.c +2 -2
index eb40dcd..c5dd3b1 100644
@@ -214,7 +214,7 @@ static void cfg_elm_end (GMarkupParseContext *context,
 		cc->text = NULL;
 	}
 
-	else if (!strcmp(element_name, "Zone")) {
+	else if (!strcmp(element_name, "Building")) {
 		if (!cc->text)
 			return;
 		if (cc->text[0] == '-')
@@ -225,7 +225,7 @@ static void cfg_elm_end (GMarkupParseContext *context,
 			cc->loc.zone = cc->text;
 		} else {
 			applog(LOG_WARNING,
-			       "%s: Zone not in Geo", cc->fname);
+			       "%s: Building not in Geo", cc->fname);
 			free(cc->text);
 		}
 		cc->text = NULL;