kernel: don't use typedef for enums or non-opaque structs
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user