Skip to content

Commit 4e75657

Browse files
cfriedtnashif
authored andcommitted
drivers: hwinfo: ensure z_vrfy_hwinfo_get_device_eui64() uses int
The z_vrfy function for this syscall ``` __syscall int hwinfo_get_device_eui64(uint8_t *buffer); ``` in `drivers/hwinfo/hwinfo_handlers.c`, used an `ssize_t` rather than an `int` which makes it inconsistent with the prototype declared in `drivers/hwinfo.h`. Use `int` instead of `ssize_t`. Signed-off-by: Chris Friedt <[email protected]>
1 parent eb9d98a commit 4e75657

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hwinfo/hwinfo_handlers.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ssize_t z_vrfy_hwinfo_get_device_id(uint8_t *buffer, size_t length)
1515
}
1616
#include <zephyr/syscalls/hwinfo_get_device_id_mrsh.c>
1717

18-
ssize_t z_vrfy_hwinfo_get_device_eui64(uint8_t *buffer)
18+
int z_vrfy_hwinfo_get_device_eui64(uint8_t *buffer)
1919
{
2020
K_OOPS(K_SYSCALL_MEMORY_WRITE(buffer, 8));
2121

0 commit comments

Comments
 (0)