summaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-11-01 19:16:32 +0100
committerJo-Philipp Wich <jo@mein.io>2021-11-01 19:16:32 +0100
commita0512eaf305d54661adec6893154161e5be01b2e (patch)
tree4485be9339b6d3c548affacf08bec6fc961c3535 /lib
parentdcb6ffdb2acab40702bc3519f74617d7846b5625 (diff)
treewide: fix typo in exported function names and types
Fix instances of misspelled "resource". This commit breaks the exported libucode ABI. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'lib')
-rw-r--r--lib/fs.c14
-rw-r--r--lib/struct.c4
-rw-r--r--lib/ubus.c4
-rw-r--r--lib/uci.c4
4 files changed, 13 insertions, 13 deletions
diff --git a/lib/fs.c b/lib/fs.c
index d51f61b..ab7cd60 100644
--- a/lib/fs.c
+++ b/lib/fs.c
@@ -31,7 +31,7 @@
#define err_return(err) do { last_error = err; return NULL; } while(0)
//static const uc_ops *ops;
-static uc_ressource_type_t *file_type, *proc_type, *dir_type;
+static uc_resource_type_t *file_type, *proc_type, *dir_type;
static int last_error = 0;
@@ -223,7 +223,7 @@ uc_fs_popen(uc_vm_t *vm, size_t nargs)
if (!fp)
err_return(errno);
- return uc_ressource_new(proc_type, fp);
+ return uc_resource_new(proc_type, fp);
}
@@ -322,7 +322,7 @@ uc_fs_open(uc_vm_t *vm, size_t nargs)
if (!fp)
err_return(errno);
- return uc_ressource_new(file_type, fp);
+ return uc_resource_new(file_type, fp);
}
@@ -409,7 +409,7 @@ uc_fs_opendir(uc_vm_t *vm, size_t nargs)
if (!dp)
err_return(errno);
- return uc_ressource_new(dir_type, dp);
+ return uc_resource_new(dir_type, dp);
}
static uc_value_t *
@@ -912,7 +912,7 @@ void uc_module_init(uc_vm_t *vm, uc_value_t *scope)
file_type = uc_type_declare(vm, "fs.file", file_fns, close_file);
dir_type = uc_type_declare(vm, "fs.dir", dir_fns, close_dir);
- ucv_object_add(scope, "stdin", uc_ressource_new(file_type, stdin));
- ucv_object_add(scope, "stdout", uc_ressource_new(file_type, stdout));
- ucv_object_add(scope, "stderr", uc_ressource_new(file_type, stderr));
+ ucv_object_add(scope, "stdin", uc_resource_new(file_type, stdin));
+ ucv_object_add(scope, "stdout", uc_resource_new(file_type, stdout));
+ ucv_object_add(scope, "stderr", uc_resource_new(file_type, stderr));
}
diff --git a/lib/struct.c b/lib/struct.c
index 3a74bb2..32edb1b 100644
--- a/lib/struct.c
+++ b/lib/struct.c
@@ -70,7 +70,7 @@
#include "ucode/module.h"
-static uc_ressource_type_t *struct_type;
+static uc_resource_type_t *struct_type;
typedef struct formatdef {
char format;
@@ -2529,7 +2529,7 @@ uc_struct_new(uc_vm_t *vm, size_t nargs)
if (!state)
return NULL;
- return uc_ressource_new(struct_type, state);
+ return uc_resource_new(struct_type, state);
}
static void
diff --git a/lib/ubus.c b/lib/ubus.c
index 67bd151..b5d5633 100644
--- a/lib/ubus.c
+++ b/lib/ubus.c
@@ -24,7 +24,7 @@
#define err_return(err) do { last_error = err; return NULL; } while(0)
static enum ubus_msg_status last_error = 0;
-static uc_ressource_type_t *conn_type;
+static uc_resource_type_t *conn_type;
typedef struct {
int timeout;
@@ -168,7 +168,7 @@ uc_ubus_connect(uc_vm_t *vm, size_t nargs)
ubus_add_uloop(c->ctx);
- return uc_ressource_new(conn_type, c);
+ return uc_resource_new(conn_type, c);
}
static void
diff --git a/lib/uci.c b/lib/uci.c
index f582ddb..50cc050 100644
--- a/lib/uci.c
+++ b/lib/uci.c
@@ -22,7 +22,7 @@
#define err_return(err) do { last_error = err; return NULL; } while(0)
static int last_error = 0;
-static uc_ressource_type_t *cursor_type;
+static uc_resource_type_t *cursor_type;
enum pkg_cmd {
CMD_SAVE,
@@ -94,7 +94,7 @@ uc_uci_cursor(uc_vm_t *vm, size_t nargs)
err_return(rv);
}
- return uc_ressource_new(cursor_type, c);
+ return uc_resource_new(cursor_type, c);
}