Skip to content

Commit 28c6f4d

Browse files
aescolarfabiobaltieri
authored andcommitted
zvfs: Use own macros and remove include
Use the zvfs macros in the code of the module itself, instead of using the versions from the POSIX API, and remove the header that defined those as it is not needed anymore. Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
1 parent 7d402f2 commit 28c6f4d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

‎lib/os/zvfs/zvfs_eventfd.c‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
#include <zephyr/kernel.h>
1010
#include <zephyr/net/socket.h>
11-
#include <zephyr/posix/fcntl.h>
1211
#include <zephyr/zvfs/eventfd.h>
1312
#include <zephyr/sys/bitarray.h>
1413
#include <zephyr/sys/fdtable.h>
@@ -229,11 +228,11 @@ static int zvfs_eventfd_ioctl_op(void *obj, unsigned int request, va_list args)
229228
}
230229

231230
switch (request) {
232-
case F_GETFL:
231+
case ZVFS_F_GETFL:
233232
ret = efd->flags & ZVFS_EFD_FLAGS_SET;
234233
break;
235234

236-
case F_SETFL: {
235+
case ZVFS_F_SETFL: {
237236
int flags;
238237

239238
flags = va_arg(args, int);

0 commit comments

Comments
 (0)