Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Commit

Permalink
2008-11-08 Al Riddoch <alriddoch@zepler.org>
Browse files Browse the repository at this point in the history
	* varconf/config.cpp: Clean up parentheses. Change the type of an
	  iterator to int, otherwise it causes warnings.
  • Loading branch information
alriddoch committed Nov 8, 2008
1 parent a74d388 commit 83bf5c3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -1,3 +1,8 @@
2008-11-08 Al Riddoch <alriddoch@zepler.org>

* varconf/config.cpp: Clean up parentheses. Change the type of an
iterator to int, otherwise it causes warnings.

2008-11-07 Al Riddoch <alriddoch@zepler.org>

* varconf/config.cpp: Fix really horribly broken code which was
Expand Down
6 changes: 3 additions & 3 deletions varconf/config.cpp
Expand Up @@ -78,9 +78,9 @@ namespace {
{
if (c=='\n') return C_EOL;
if (isspace(c)) return C_SPACE;
if ((c >= 'a') && (c <= 'z') || (c >= 'A') && (c <= 'Z')) return C_ALPHA;
if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')) return C_ALPHA;
if (isdigit(c)) return C_NUMERIC;
if ((c == '-') || (c == '_')) return C_DASH;
if (c == '-' || c == '_') return C_DASH;
if (c == '=') return C_EQ;
if (c == '"') return C_QUOTE;
if (c == '[') return C_SQUARE_OPEN;
Expand Down Expand Up @@ -205,7 +205,7 @@ int Config::getCmdline(int argc, char** argv, Scope scope)
{
int optind = 1;

for (size_t i = 1; i < (size_t)argc; i++) {
for (int i = 1; i < argc; i++) {
if (argv[i][0] != '-' ) {
continue;
}
Expand Down

0 comments on commit 83bf5c3

Please sign in to comment.