summaryrefslogtreecommitdiffstats
path: root/usr.sbin/apmd
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2010-08-31 07:19:10 +0000
committerkevlo <kevlo@FreeBSD.org>2010-08-31 07:19:10 +0000
commitc7fccca900d4480033c61c12f768a9827d7e7383 (patch)
tree7797c8a9b64d3d6134c74efd195007ed32b81254 /usr.sbin/apmd
parentae90c2fd0986f5829f4fdfc1a2137c52f77846cb (diff)
downloadFreeBSD-src-c7fccca900d4480033c61c12f768a9827d7e7383.zip
FreeBSD-src-c7fccca900d4480033c61c12f768a9827d7e7383.tar.gz
For consistency, cast result of getpid() to long
Diffstat (limited to 'usr.sbin/apmd')
-rw-r--r--usr.sbin/apmd/apmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/apmd/apmd.c b/usr.sbin/apmd/apmd.c
index f6654d5..585383c 100644
--- a/usr.sbin/apmd/apmd.c
+++ b/usr.sbin/apmd/apmd.c
@@ -435,7 +435,7 @@ write_pid(void)
FILE *fp = fopen(apmd_pidfile, "w");
if (fp) {
- fprintf(fp, "%d\n", getpid());
+ fprintf(fp, "%ld\n", (long)getpid());
fclose(fp);
}
}
OpenPOWER on IntegriCloud