aboutsummaryrefslogtreecommitdiffstats
path: root/lock.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2010-04-29 20:41:32 +0200
committerMatthias Andree <matthias.andree@gmx.de>2010-04-29 20:41:39 +0200
commit064e3c024f388b36af5d39702cbf64e24613cb4f (patch)
treed0d84a9fdf3e240c976ac220730f34df3e0617c0 /lock.c
parentbe9e00b0ca370a7620b57f4714db808742d8302e (diff)
downloadfetchmail-064e3c024f388b36af5d39702cbf64e24613cb4f.tar.gz
fetchmail-064e3c024f388b36af5d39702cbf64e24613cb4f.tar.bz2
fetchmail-064e3c024f388b36af5d39702cbf64e24613cb4f.zip
Properly use long to map pid_t.
Diffstat (limited to 'lock.c')
-rw-r--r--lock.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lock.c b/lock.c
index 111559e7..213969f1 100644
--- a/lock.c
+++ b/lock.c
@@ -73,13 +73,14 @@ void fm_lock_dispose(void)
int fm_lock_state(void)
{
- int pid, st;
+ long pid;
+ int st;
FILE *lockfp;
int bkgd = FALSE;
if ((lockfp = fopen(lockfile, "r")) != NULL)
{
- int args = fscanf(lockfp, "%d %d", &pid, &st);
+ int args = fscanf(lockfp, "%ld %d", &pid, &st);
bkgd = (args == 2);
if (ferror(lockfp)) {