Skip to content

Commit

Permalink
avoid c99
Browse files Browse the repository at this point in the history
  • Loading branch information
gardners committed Apr 20, 2017
1 parent de8175a commit b7b287c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions parsecountries.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ int process_entry(FILE *of,char *country,char *code)
int len=0;
int incomment=0;

for(int i=0;country[i];i++) {
int i;
for(i=0;country[i];i++) {

// Remove HTML comments
if (!strncmp("<",&country[i],4)) incomment=1;
Expand Down Expand Up @@ -84,7 +85,9 @@ int main(int argc,char **argv)
char country[1024];
char iso_code[1024];

for(int i=0;i<r;i++) {
int i;

for(i=0;i<r;i++) {
if ((buffer[i]=='\n')||(buffer[i]=='\r')) {
line[len]=0;
switch (state) {
Expand Down

0 comments on commit b7b287c

Please sign in to comment.