summaryrefslogtreecommitdiffstats
path: root/mapfile.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2009-02-12 16:47:30 -0800
committerH. Peter Anvin <hpa@linux.intel.com>2009-02-12 16:47:30 -0800
commitee1faead0b1364379f73c9cc9566efc48b2fbc2a (patch)
tree56f4a7597010ad42be99698e53ed21f9e905ae72 /mapfile.c
parenta3820f9cf44b9652b16e702176bfee2afe5f4563 (diff)
downloadwraplinux-ee1faead0b1364379f73c9cc9566efc48b2fbc2a.tar.gz
wraplinux-ee1faead0b1364379f73c9cc9566efc48b2fbc2a.tar.xz
wraplinux-ee1faead0b1364379f73c9cc9566efc48b2fbc2a.zip
mapfile: use bool
We already rely on <stdbool.h>, so use bool for the "writable" flag.
Diffstat (limited to 'mapfile.c')
-rw-r--r--mapfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mapfile.c b/mapfile.c
index 32233eb..91db71b 100644
--- a/mapfile.c
+++ b/mapfile.c
@@ -28,7 +28,7 @@
#include <sys/mman.h>
#include <sys/stat.h>
-void *mapfile(int fd, size_t *len, int writable)
+void *mapfile(int fd, size_t *len, bool writable)
{
struct stat st;
void *ptr;