projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix warnings int the lttv/sync directory
[lttv.git]
/
lttv
/
lttv
/
sync
/
graph_functions.c
diff --git
a/lttv/lttv/sync/graph_functions.c
b/lttv/lttv/sync/graph_functions.c
index c347b249b90fcb605bb1ea115bd89e688dfe96b3..91feef0c45c5a64f2cc28dc3424d3cf748ec4297 100644
(file)
--- a/
lttv/lttv/sync/graph_functions.c
+++ b/
lttv/lttv/sync/graph_functions.c
@@
-55,11
+55,11
@@
FILE* createGraphsDir(const char* const graphsDir)
S_IWUSR | S_IXUSR | S_IRGRP | S_IWGRP | S_IXGRP | S_IROTH
| S_IWOTH | S_IXOTH)) == -1)
{
S_IWUSR | S_IXUSR | S_IRGRP | S_IWGRP | S_IXGRP | S_IROTH
| S_IWOTH | S_IXOTH)) == -1)
{
- g_error(strerror(errno));
+ g_error(
"%s",
strerror(errno));
}
if ((result= fdopen(graphsFp, "w")) == NULL)
{
}
if ((result= fdopen(graphsFp, "w")) == NULL)
{
- g_error(strerror(errno));
+ g_error(
"%s",
strerror(errno));
}
fprintf(result,
}
fprintf(result,
@@
-69,7
+69,7
@@
FILE* createGraphsDir(const char* const graphsDir)
retval= chdir(cwd);
if (retval == -1)
{
retval= chdir(cwd);
if (retval == -1)
{
- g_error(strerror(errno));
+ g_error(
"%s",
strerror(errno));
}
free(cwd);
}
free(cwd);
@@
-95,7
+95,7
@@
char* changeToGraphsDir(const char* const graphsDir)
cwd= getcwd(NULL, 0);
if (cwd == NULL)
{
cwd= getcwd(NULL, 0);
if (cwd == NULL)
{
- g_error(strerror(errno));
+ g_error(
"%s",
strerror(errno));
}
while ((retval= chdir(graphsDir)) != 0)
{
}
while ((retval= chdir(graphsDir)) != 0)
{
@@
-105,12
+105,12
@@
char* changeToGraphsDir(const char* const graphsDir)
S_IWGRP | S_IXGRP | S_IROTH | S_IWOTH | S_IXOTH);
if (retval != 0)
{
S_IWGRP | S_IXGRP | S_IROTH | S_IWOTH | S_IXOTH);
if (retval != 0)
{
- g_error(strerror(errno));
+ g_error(
"%s",
strerror(errno));
}
}
else
{
}
}
else
{
- g_error(strerror(errno));
+ g_error(
"%s",
strerror(errno));
}
}
}
}
@@
-233,11
+233,11
@@
void writeGraphsScript(SyncState* const syncState)
if (ftruncate(fileno(syncState->graphsStream), trunc) == -1)
{
if (ftruncate(fileno(syncState->graphsStream), trunc) == -1)
{
- g_error(strerror(errno));
+ g_error(
"%s",
strerror(errno));
}
if (fseek(syncState->graphsStream, 0, SEEK_END) == -1)
{
}
if (fseek(syncState->graphsStream, 0, SEEK_END) == -1)
{
- g_error(strerror(errno));
+ g_error(
"%s",
strerror(errno));
}
fprintf(syncState->graphsStream,
}
fprintf(syncState->graphsStream,
This page took
0.024361 seconds
and
4
git commands to generate.