We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3277fa commit 151a96cCopy full SHA for 151a96c
components/drivers/include/drivers/serial_dm.h
@@ -13,7 +13,7 @@
13
14
#include <rtthread.h>
15
#include <rtdevice.h>
16
-#include <string.h>
+#include <posix/string.h>
17
18
int serial_dev_set_name(struct rt_serial_device *sdev);
19
@@ -22,7 +22,7 @@ struct serial_configure serial_cfg_from_args(char *str);
22
23
#define serial_for_each_args(arg, args) \
24
for (char *context = (arg = (typeof(arg))args, (void *)RT_NULL), \
25
- *context_end = rt_strchrnul((char *)args, ' '); \
+ *context_end = strchrnul((char *)args, ' '); \
26
(arg = strtok_r(arg, ",", &context)) && arg < context_end; \
27
arg = RT_NULL)
28
0 commit comments