diff options
author | Kevin Lo <kevlo@FreeBSD.org> | 2010-08-31 07:19:10 +0000 |
---|---|---|
committer | Kevin Lo <kevlo@FreeBSD.org> | 2010-08-31 07:19:10 +0000 |
commit | 34759932a8c5b0de7a43f59aeb02de70ecb8aeea (patch) | |
tree | 7797c8a9b64d3d6134c74efd195007ed32b81254 /usr.sbin | |
parent | 83b718eb07be2da422633a97298fb549aed1d711 (diff) | |
download | src-34759932a8c5b0de7a43f59aeb02de70ecb8aeea.tar.gz src-34759932a8c5b0de7a43f59aeb02de70ecb8aeea.zip |
For consistency, cast result of getpid() to long
Notes
Notes:
svn path=/head/; revision=212048
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 f6654d58f124..585383c7221e 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); } } |