From f20727afbbf833b541690b8e4e287d5108655353 Mon Sep 17 00:00:00 2001 From: Ben Walker Date: Mon, 11 Jul 2016 13:45:04 -0700 Subject: [PATCH] nvmf: Rename init_grp to host in config parsing The code for parsing the configuration file still referred to a host as an init_grp, so fix it. Change-Id: Ifa250b09de495dd7d393ccc3557fd6d56a54e790 Signed-off-by: Ben Walker --- lib/nvmf/conf.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/nvmf/conf.c b/lib/nvmf/conf.c index 5cab27573a..98366a8bee 100644 --- a/lib/nvmf/conf.c +++ b/lib/nvmf/conf.c @@ -234,7 +234,7 @@ spdk_nvmf_parse_ports(void) } static int -spdk_nvmf_parse_init_grp(struct spdk_conf_section *sp) +spdk_nvmf_parse_host(struct spdk_conf_section *sp) { int i; const char *mask; @@ -280,7 +280,7 @@ spdk_nvmf_parse_init_grp(struct spdk_conf_section *sp) } static int -spdk_nvmf_parse_init_grps(void) +spdk_nvmf_parse_hosts(void) { int rc = 0; struct spdk_conf_section *sp; @@ -288,7 +288,7 @@ spdk_nvmf_parse_init_grps(void) sp = spdk_conf_first_section(NULL); while (sp != NULL) { if (spdk_conf_section_match_prefix(sp, "Host")) { - rc = spdk_nvmf_parse_init_grp(sp); + rc = spdk_nvmf_parse_host(sp); if (rc < 0) { return -1; } @@ -315,8 +315,8 @@ spdk_nvmf_parse_conf(void) return rc; } - /* Initiator Group sections */ - rc = spdk_nvmf_parse_init_grps(); + /* Host sections */ + rc = spdk_nvmf_parse_hosts(); if (rc < 0) { return rc; }