summaryrefslogtreecommitdiff
path: root/parser.c
diff options
context:
space:
mode:
authorroot <root@fedora-arm.domain.avtechpulse.com>1999-12-31 20:13:53 -0500
committerroot <root@fedora-arm.domain.avtechpulse.com>1999-12-31 20:13:53 -0500
commit08819acf094883c069e7c3088d5da6a9c24c45b8 (patch)
tree6fcd79175b9efbb69689f31ff7650e6fbc77ac86 /parser.c
parent80b991816acb29e645fa7e047325942f8f050861 (diff)
fix various warnings
Diffstat (limited to 'parser.c')
-rw-r--r--parser.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/parser.c b/parser.c
index cda2bf9..eb97868 100644
--- a/parser.c
+++ b/parser.c
@@ -494,12 +494,15 @@ static int Parser_get_unit(char *parameter,char *units)
parameter[j]=0;
}
- if (i < strlen(parameter))
+ if (i < strlen(parameter)) {
if ( (parameter[i]=='e' && parameter[i+1]=='-')
- || (parameter[i]=='e' && parameter[i+1]=='+') )
+ || (parameter[i]=='e' && parameter[i+1]=='+') ) {
for (i+=2; (i < strlen(parameter)) && isdigit(parameter[i]); ++i) {}
- else if (parameter[i]=='e' && isdigit(parameter[i+1]) )
+ }
+ else if (parameter[i]=='e' && isdigit(parameter[i+1]) ) {
for (i+=2; (i < strlen(parameter)) && isdigit(parameter[i]); ++i) {}
+ }
+ }
/* suck out spaces */
while ( (i<strlen(parameter)) && (isspace(parameter[i])) ) {