diff options
author | kevlo <kevlo@FreeBSD.org> | 2010-08-31 07:19:10 +0000 |
---|---|---|
committer | kevlo <kevlo@FreeBSD.org> | 2010-08-31 07:19:10 +0000 |
commit | c7fccca900d4480033c61c12f768a9827d7e7383 (patch) | |
tree | 7797c8a9b64d3d6134c74efd195007ed32b81254 /usr.sbin | |
parent | ae90c2fd0986f5829f4fdfc1a2137c52f77846cb (diff) | |
download | FreeBSD-src-c7fccca900d4480033c61c12f768a9827d7e7383.zip FreeBSD-src-c7fccca900d4480033c61c12f768a9827d7e7383.tar.gz |
For consistency, cast result of getpid() to long
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/apmd/apmd.c | 2 |
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); } } |