Eolian: fix warnings

This commit is contained in:
Daniel Zaoui 2014-03-07 18:02:44 +02:00
parent a78f779486
commit a660bbe966
2 changed files with 10 additions and 4 deletions

View File

@ -4207,6 +4207,9 @@ eo_tokenizer_database_fill(const char *filename)
Eo_Event_Def *event;
Eo_Implement_Def *impl;
FILE *stream = NULL;
char *buffer = NULL;
Eo_Tokenizer *toknz = eo_tokenizer_get();
if (!toknz)
{
@ -4214,14 +4217,14 @@ eo_tokenizer_database_fill(const char *filename)
goto end;
}
FILE *stream = fopen(filename, "rb");
stream = fopen(filename, "rb");
if (!stream)
{
ERR("unable to read in %s", filename);
goto end;
}
char *buffer = malloc(BUFSIZE);
buffer = malloc(BUFSIZE);
unsigned int len = fread(buffer, 1, BUFSIZE, stream);
if (!eo_tokenizer_mem_walk(toknz, filename, buffer, len)) goto end;

View File

@ -1201,6 +1201,9 @@ eo_tokenizer_database_fill(const char *filename)
Eo_Event_Def *event;
Eo_Implement_Def *impl;
FILE *stream = NULL;
char *buffer = NULL;
Eo_Tokenizer *toknz = eo_tokenizer_get();
if (!toknz)
{
@ -1208,14 +1211,14 @@ eo_tokenizer_database_fill(const char *filename)
goto end;
}
FILE *stream = fopen(filename, "rb");
stream = fopen(filename, "rb");
if (!stream)
{
ERR("unable to read in %s", filename);
goto end;
}
char *buffer = malloc(BUFSIZE);
buffer = malloc(BUFSIZE);
unsigned int len = fread(buffer, 1, BUFSIZE, stream);
if (!eo_tokenizer_mem_walk(toknz, filename, buffer, len)) goto end;