summaryrefslogtreecommitdiff
path: root/rootdir.h
diff options
context:
space:
mode:
authorJeremie Koenig <jk@jk.fr.eu.org>2010-08-23 09:06:01 +0000
committerJeremie Koenig <jk@jk.fr.eu.org>2010-08-30 14:29:53 +0200
commit687c9658628eb044be75df8074c5983e865b6394 (patch)
tree38f391e425eba23a4bc569ea251c688786b1ab6f /rootdir.h
parent60f604f96c8f78320d415d92b325d0de80949043 (diff)
Use a global ps_context
* proclist.c, proclist.h (proclist_create_node): Use a ps_context passed by the caller; errors are no longer possible, rename to proclist_make_node and change the signature accordingly. * rootdir.c, rootdir.h (rootdir_create_node): Likewise. * main.c (main): Create the ps_context here and pass it to root_make_node. (root_make_node): Pass it to proclist_make_node and rootdir_make_node.
Diffstat (limited to 'rootdir.h')
-rw-r--r--rootdir.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/rootdir.h b/rootdir.h
index a764b0fd..0caee258 100644
--- a/rootdir.h
+++ b/rootdir.h
@@ -1,2 +1,4 @@
-error_t
-rootdir_create_node (struct node **np);
+#include <ps.h>
+
+struct node *
+rootdir_make_node (struct ps_context *pc);