summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/main.c b/main.c
index 15602819..75e1cda3 100644
--- a/main.c
+++ b/main.c
@@ -25,16 +25,17 @@ root_make_node (struct node **np)
/* We never have two root nodes alive simultaneously, so it's ok to
have this as static data. */
static struct node *root_dirs[3];
+ error_t err;
root_dirs[0] = procfs_dir_make_node (static_entries, NULL, NULL);
if (! root_dirs[0])
return ENOMEM;
- root_dirs[1] = proclist_make_node (getproc ());
- if (! root_dirs[1])
+ err = proclist_create_node (getproc (), &root_dirs[1]);
+ if (err)
{
netfs_nrele (root_dirs[0]);
- return ENOMEM;
+ return err;
}
root_dirs[2] = NULL;