Skip to content

Commit

Permalink
Remove compiler warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
g4klx authored Mar 8, 2017
1 parent d51b726 commit f3a589c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Conf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ bool CConf::read()

if (buffer[0U] == '[') {
if (::strncmp(buffer, "[General]", 9U) == 0)
section = SECTION_GENERAL;
section = SECTION_GENERAL;
else if (::strncmp(buffer, "[Info]", 6U) == 0)
section = SECTION_INFO;
else if (::strncmp(buffer, "[Log]", 5U) == 0)
Expand All @@ -216,9 +216,9 @@ bool CConf::read()
section = SECTION_P25;
else if (::strncmp(buffer, "[D-Star Network]", 16U) == 0)
section = SECTION_DSTAR_NETWORK;
else if (::strncmp(buffer, "[DMR Network]", 13U) == 0)
else if (::strncmp(buffer, "[DMR Network]", 13U) == 0)
section = SECTION_DMR_NETWORK;
else if (::strncmp(buffer, "[System Fusion Network]", 23U) == 0)
else if (::strncmp(buffer, "[System Fusion Network]", 23U) == 0)
section = SECTION_FUSION_NETWORK;
else if (::strncmp(buffer, "[P25 Network]", 13U) == 0)
section = SECTION_P25_NETWORK;
Expand All @@ -235,7 +235,7 @@ bool CConf::read()
else
section = SECTION_NONE;

continue;
continue;
}

char* key = ::strtok(buffer, " \t=\r\n");
Expand All @@ -244,7 +244,7 @@ bool CConf::read()

char* value = ::strtok(NULL, "\r\n");
if (value == NULL)
value = "";
continue;

if (section == SECTION_GENERAL) {
if (::strcmp(key, "Callsign") == 0) {
Expand Down

0 comments on commit f3a589c

Please sign in to comment.