kernel: don't use typedef for enums or non-opaque structs

This commit is contained in:
2023-04-12 20:17:11 +01:00
parent 0d75e347e9
commit b6f8c1ccaa
51 changed files with 663 additions and 665 deletions

View File

@@ -3,7 +3,7 @@
#include <socks/device.h>
static struct device *root_device = NULL;
static object_type_t device_type = {
static struct object_type device_type = {
.ob_name = "device",
.ob_size = sizeof(struct device),
.ob_ops = {
@@ -31,7 +31,7 @@ kern_status_t set_root_device(struct device *dev)
struct device *device_alloc(void)
{
object_t *dev_object = object_create(&device_type);
struct object *dev_object = object_create(&device_type);
if (!dev_object) {
return NULL;
}