summaryrefslogtreecommitdiff
path: root/procfs_dir.c
diff options
context:
space:
mode:
authorJeremie Koenig <jk@jk.fr.eu.org>2010-08-23 11:24:29 +0000
committerJeremie Koenig <jk@jk.fr.eu.org>2010-08-30 14:31:21 +0200
commit0f2bdacd6ad3dbcc905925dee12cb30918c33a11 (patch)
treefbcadf8294b3314bb0a924339c00bc7bb89d6d79 /procfs_dir.c
parenta269783a41ae8b18e5b24d934c96ce9e90de3067 (diff)
Make contents a char* to avoid typecasts all over the place
* procfs.h (procfs_cleanup_contents_with_free, procfs_cleanup_contents_with_vm_deallocate, procfs_get_contents, struct procfs_ops): Change CONTENTS from a void pointer to a char one. * dircat.c, netfs.c, process.c, procfs.c, procfs_dir.c, proclist.c, rootdir.c: Update.
Diffstat (limited to 'procfs_dir.c')
-rw-r--r--procfs_dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/procfs_dir.c b/procfs_dir.c
index 431fea3..4df4669 100644
--- a/procfs_dir.c
+++ b/procfs_dir.c
@@ -11,7 +11,7 @@ struct procfs_dir_node
};
static error_t
-procfs_dir_get_contents (void *hook, void **contents, size_t *contents_len)
+procfs_dir_get_contents (void *hook, char **contents, size_t *contents_len)
{
static const char dot_dotdot[] = ".\0..";
struct procfs_dir_node *dn = hook;