diff options
| author | zhkag <[email protected]> | 2023-05-23 10:03:23 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-05-22 22:03:23 -0400 |
| commit | 662aa1b7e2922db39c36b25a169001bffc03e7b4 (patch) | |
| tree | 504b428a53c5c3f6cf77167ac5085e6eabce2a09 /components | |
| parent | 7f31d5cb8caacfe4ed55568a6a654a3137902051 (diff) | |
[libc error] 编译错误PATH_MAX 未定义,移除 mq 中的 PATH_MAX 判断 (#7550)
Diffstat (limited to 'components')
| -rw-r--r-- | components/libc/posix/ipc/mqueue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/libc/posix/ipc/mqueue.c b/components/libc/posix/ipc/mqueue.c index b2e7b7b6c4..4b5905ef48 100644 --- a/components/libc/posix/ipc/mqueue.c +++ b/components/libc/posix/ipc/mqueue.c @@ -138,7 +138,7 @@ mqd_t mq_open(const char *name, int oflag, ...) /* lock posix mqueue list */ rt_sem_take(&posix_mq_lock, RT_WAITING_FOREVER); int len = rt_strlen(name); - if (len > PATH_MAX || len > RT_NAME_MAX) + if (len > RT_NAME_MAX) { rt_set_errno(ENAMETOOLONG); goto __return; |
