projects
/
oweals
/
tinc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix issues found by Coverity.
[oweals/tinc.git]
/
src
/
pidfile.c
diff --git
a/src/pidfile.c
b/src/pidfile.c
index 6e24d5f026b7db98a1196a7e26696d5242cd890a..232c2c42d7429cf49f20662f7ce0121fdfc5b86f 100644
(file)
--- a/
src/pidfile.c
+++ b/
src/pidfile.c
@@
-46,7
+46,7
@@
pid_t read_pid (const char *pidfile)
if(fscanf(f,"%20ld", &pid) != 1)
pid = 0;
fclose(f);
if(fscanf(f,"%20ld", &pid) != 1)
pid = 0;
fclose(f);
- return pid;
+ return
(pid_t)
pid;
}
/* check_pid
}
/* check_pid