From 064e3c024f388b36af5d39702cbf64e24613cb4f Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Thu, 29 Apr 2010 20:41:32 +0200 Subject: Properly use long to map pid_t. --- lock.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lock.c') 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)) { -- cgit v1.2.3