Skip to content

Commit

Permalink
Merge branch 'beesep' of https://github.com/ruester/bee
Browse files Browse the repository at this point in the history
* 'beesep' of https://github.com/ruester/bee:
  beesep: translate german variable name into english
  beesep: remove unused variable
  • Loading branch information
mariux committed May 16, 2012
2 parents f253d66 + 5f488b4 commit ed25d14
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/beesep.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ int main(int argc, char** argv)
char gl=0; /* equal sign */
char dp=0; /* colon */
int dp_pos=0; /* position of last colon */
int segmente=0; /* number of tokens */
int strlaenge=0;
int length=0;
int i=0;
if(argc<2)
{
Expand All @@ -57,7 +56,6 @@ int main(int argc, char** argv)
if(gl && dp && argv[1][i]=='=')
{
argv[1][dp_pos]='\0';
segmente++;
gl=1;
dp=0;
}
Expand All @@ -70,10 +68,10 @@ int main(int argc, char** argv)
}

/* save tokens in an array and print them */
strlaenge=i;
length=i;
i=0;
gl=0;
while(i<strlaenge)
while(i<length)
{
printf("%c",argv[1][i]);
fflush(stdout);
Expand Down

0 comments on commit ed25d14

Please sign in to comment.