summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorJeremie Koenig <jk@jk.fr.eu.org>2010-08-17 17:27:54 +0000
committerJeremie Koenig <jk@jk.fr.eu.org>2010-08-30 14:14:48 +0200
commitba139824fa06a97f2a3b1cc4c6085d10a83ec2b9 (patch)
treecab204b860507636bf9a42fb5cc3368b29f9ba99 /main.c
parentac75e3648e6a9c3a8cf45d5fa491abd3a3ab3613 (diff)
More cleanup possibilities
* procfs.c, procfs.h: Extend the signature of the cleanup_contents callback in the procfs_node_ops structure to include the hook and contents_len. (cleanup_contents_with_free, cleanup_contents_with_vm_deallocate): New functions, can be used as a cleanup_contents callback for simple cases. * procfs_dir.c, procfs_dir.h (procfs_dir_make_node): Update, add a cleanup callback, make sure the cleanup callback is invoked if there is an error. * proclist.c (proclist_make_node), main.c (main): Update to match the new interfaces.
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index bc5c865..4350eff 100644
--- a/main.c
+++ b/main.c
@@ -35,7 +35,7 @@ int main (int argc, char **argv)
error (1, 0, "Must be started as a translator");
netfs_init ();
- netfs_root_node = procfs_dir_make_node (entries, NULL);
+ netfs_root_node = procfs_dir_make_node (entries, NULL, NULL);
netfs_startup (bootstrap, 0);
for (;;)