summaryrefslogtreecommitdiff
path: root/udev_utils.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2005-06-24 18:05:32 +0200
committerKay Sievers <kay.sievers@suse.de>2005-06-24 18:05:32 +0200
commit6bf0ffe8fd312c1e6549cb1721d7a7efeee77185 (patch)
treed05153602e1589a0a519a3d49fed1d44e7188cc9 /udev_utils.c
parentc9b8dbfb652a10d2f1c1b122a3806c21cab87ab4 (diff)
allow rules to be compiled to one binary file
All the rule files can be compiled into a single file, which can be mapped into the udev process to avoid parsing the rules with every event. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Diffstat (limited to 'udev_utils.c')
-rw-r--r--udev_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/udev_utils.c b/udev_utils.c
index 64a7ba9caa..c35b287881 100644
--- a/udev_utils.c
+++ b/udev_utils.c
@@ -247,7 +247,7 @@ int file_map(const char *filename, char **buf, size_t *bufsize)
return 0;
}
-void file_unmap(char *buf, size_t bufsize)
+void file_unmap(void *buf, size_t bufsize)
{
munmap(buf, bufsize);
}