From 354656b9d9723aa17a324ef16fc95922f38a60cd Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 16 Jan 2022 11:49:51 +0100 Subject: device_types: Add const_dev_name_t This will avoid forcing the caller to respect the definite string size. --- include/device/device_types.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/device/device_types.h b/include/device/device_types.h index a6db051e..63ec26bd 100644 --- a/include/device/device_types.h +++ b/include/device/device_types.h @@ -54,6 +54,7 @@ typedef mach_port_t device_t; * Device name string */ typedef char dev_name_t[128]; /* must match device_types.defs */ +typedef const char *const_dev_name_t; /* * Mode for open/read/write -- cgit v1.2.3