From: Pete Zaitcev Subject: [patch tabled 5/8] Rename in_storage to in_socket Date: Sun, 28 Nov 2010 18:40:24 -0700 Message-ID: <20101128184024.65b03fea@lembas.zaitcev.lan> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Sender: hail-devel-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" To: Jeff Garzik Cc: Project Hail List The clause is called , so the old name was confusing. Signed-off-by: Pete Zaitcev --- server/storparse.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) commit 6536a193f1befcf3eed8b18535990e8566518479 Author: Pete Zaitcev Date: Sun Nov 28 16:29:54 2010 -0700 Rename in_storage to in_socket, because . diff --git a/server/storparse.c b/server/storparse.c index 5ed15ea..cbffe0f 100644 --- a/server/storparse.c +++ b/server/storparse.c @@ -36,7 +36,7 @@ struct config_context { bool in_chunk; bool in_chunk_reported; - bool in_storage; + bool in_socket; bool stor_encrypt; char *stor_port; char *stor_host; @@ -82,8 +82,8 @@ static void cfg_elm_start (GMarkupParseContext *context, } if (!strcmp(element_name, "Socket")) { - if (!cc->in_storage) - cc->in_storage = true; + if (!cc->in_socket) + cc->in_socket = true; else applog(LOG_ERR, "%s: Nested Socket", cc->fname); } @@ -95,7 +95,7 @@ static void cfg_elm_start (GMarkupParseContext *context, } } -static void cfg_elm_end_storage(struct config_context *cc) +static void cfg_elm_end_socket(struct config_context *cc) { if (cc->text) { applog(LOG_WARNING, "%s: Extra text in Socket element: \"%s\"", @@ -206,8 +206,8 @@ static void cfg_elm_end (GMarkupParseContext *context, } else if (!strcmp(element_name, "Socket")) { - cfg_elm_end_storage(cc); - cc->in_storage = false; + cfg_elm_end_socket(cc); + cc->in_socket = false; } else if (!strcmp(element_name, "Geo")) { @@ -272,7 +272,7 @@ static void cfg_elm_end (GMarkupParseContext *context, return; } - if (cc->in_storage) { + if (cc->in_socket) { n = strtol(cc->text, NULL, 10); if (n > 0 && n < 65536) { free(cc->stor_port); @@ -296,7 +296,7 @@ static void cfg_elm_end (GMarkupParseContext *context, return; } - if (cc->in_storage) { + if (cc->in_socket) { free(cc->stor_host); cc->stor_host = cc->text; cc->text = NULL;