rttStream= fopen(optionEvalRttFile.arg, "r");
if (rttStream == NULL)
{
- g_error(strerror(errno));
+ g_error("%s", strerror(errno));
}
readRttInfo(analysisData->rttInfo, rttStream);
retval= fclose(rttStream);
if (retval == EOF)
{
- g_error(strerror(errno));
+ g_error("%s", strerror(errno));
}
}
if ((*(FILE**)((void*) histogram + loopValues[i].pointsOffset)=
fopen(name, "w")) == NULL)
{
- g_error(strerror(errno));
+ g_error("%s", strerror(errno));
}
}
retval= chdir(cwd);
if (retval == -1)
{
- g_error(strerror(errno));
+ g_error("%s", strerror(errno));
}
free(cwd);
retval= fclose(*(FILE**)((void*) histogram + loopValues[i].pointsOffset));
if (retval != 0)
{
- g_error(strerror(errno));
+ g_error("%s", strerror(errno));
}
}
// Remove the ",\\\n" from the last graph plot line
if (ftruncate(fileno(graphsStream), ftell(graphsStream) - 3) == -1)
{
- g_error(strerror(errno));
+ g_error("%s", strerror(errno));
}
if (fseek(graphsStream, 0, SEEK_END) == -1)
{
- g_error(strerror(errno));
+ g_error("%s", strerror(errno));
}
fprintf(graphsStream, "\n");
}
message)
{
AnalysisDataEval* analysisData= syncState->analysisData;
- MessageStats* messageStats;
+ MessageStats* messageStats = NULL; /* for gcc */
double* rtt;
double tt;
struct RttKey rttKey;
if (retval == -1 && !feof(rttStream))
{
- g_error(strerror(errno));
+ g_error("%s", strerror(errno));
}
if (line[retval - 1] == '\n')
&tmp);
if (retval == EOF)
{
- g_error(strerror(errno));
+ g_error("%s", strerror(errno));
}
else if (retval != 3)
{
}
else
{
- g_error(strerror(errno));
+ g_error("%s", strerror(errno));
}
}
}