tabled: use correct name for zone attribute
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.
Signed-off-by Pete Zaitcev <[email protected]>
server/storparse.c +2 -2
@@ -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 ;