projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: Silence warning formating pid_t as int
[lttng-tools.git]
/
src
/
common
/
utils.c
diff --git
a/src/common/utils.c
b/src/common/utils.c
index e3f1bf7e62ad8109db5cbefd211f81484f02d737..11018739be9ad9c7e6a83340a2434fdc2fc654c1 100644
(file)
--- a/
src/common/utils.c
+++ b/
src/common/utils.c
@@
-479,7
+479,7
@@
int utils_create_pid_file(pid_t pid, const char *filepath)
goto error;
}
goto error;
}
- ret = fprintf(fp, "%d\n", pid);
+ ret = fprintf(fp, "%d\n",
(int)
pid);
if (ret < 0) {
PERROR("fprintf pid file");
goto error;
if (ret < 0) {
PERROR("fprintf pid file");
goto error;
@@
-488,7
+488,7
@@
int utils_create_pid_file(pid_t pid, const char *filepath)
if (fclose(fp)) {
PERROR("fclose");
}
if (fclose(fp)) {
PERROR("fclose");
}
- DBG("Pid %d written in file %s", pid, filepath);
+ DBG("Pid %d written in file %s",
(int)
pid, filepath);
ret = 0;
error:
return ret;
ret = 0;
error:
return ret;
This page took
0.032976 seconds
and
4
git commands to generate.