summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2020-01-23 21:55:00 -0800
committerKaz Kylheku <kaz@kylheku.com>2020-01-23 21:55:00 -0800
commitda0977abe98df31f8ee8d573ef430b76788f219b (patch)
treee103d77ba6c63cff6a7d030f0b37ef0297411226
parenta4265e658d88d28e5534460b7b303a65eedc3eda (diff)
downloadtxr-da0977abe98df31f8ee8d573ef430b76788f219b.tar.gz
txr-da0977abe98df31f8ee8d573ef430b76788f219b.tar.bz2
txr-da0977abe98df31f8ee8d573ef430b76788f219b.zip
mknod: third arg must be optional.
* sysif.c (sysif_init): Fix incorrect registration of mknod, whose third argument (dev) is documented as optional.
-rw-r--r--sysif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysif.c b/sysif.c
index 669b1863..4fd4657f 100644
--- a/sysif.c
+++ b/sysif.c
@@ -2054,7 +2054,7 @@ void sysif_init(void)
#endif
#if HAVE_MKNOD
- reg_fun(intern(lit("mknod"), user_package), func_n3(mknod_wrap));
+ reg_fun(intern(lit("mknod"), user_package), func_n3o(mknod_wrap, 2));
#endif
#if HAVE_CHMOD