diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2010-04-29 20:41:32 +0200 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2010-04-29 20:41:39 +0200 |
commit | 064e3c024f388b36af5d39702cbf64e24613cb4f (patch) | |
tree | d0d84a9fdf3e240c976ac220730f34df3e0617c0 /lock.c | |
parent | be9e00b0ca370a7620b57f4714db808742d8302e (diff) | |
download | fetchmail-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.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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)) { |