summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzhkag <[email protected]>2023-01-07 07:41:52 +0000
committerguo <[email protected]>2023-01-09 09:32:07 +0800
commit7f9ccd3c809afa6b54f0d453f2edcc8367a6aeb8 (patch)
treeef52ac93c019fd588cba6ef508c4fb92fc66aeda
parent7fc3b2d7b566aa7b79b499d8747fdd2041b3d59b (diff)
格式化代码
-rw-r--r--components/libc/posix/ipc/mqueue.c2
-rw-r--r--components/lwp/lwp_syscall.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/components/libc/posix/ipc/mqueue.c b/components/libc/posix/ipc/mqueue.c
index 95150199c8..4ab471c446 100644
--- a/components/libc/posix/ipc/mqueue.c
+++ b/components/libc/posix/ipc/mqueue.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2021, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/components/lwp/lwp_syscall.c b/components/lwp/lwp_syscall.c
index 7fd20f4019..16ac7e99ee 100644
--- a/components/lwp/lwp_syscall.c
+++ b/components/lwp/lwp_syscall.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2021, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -68,11 +68,11 @@
#include "lwp_ipc_internal.h"
#include <sched.h>
#ifndef GRND_NONBLOCK
-#define GRND_NONBLOCK 0x0001
+#define GRND_NONBLOCK 0x0001
#endif /* GRND_NONBLOCK */
#ifndef GRND_RANDOM
-#define GRND_RANDOM 0x0002
+#define GRND_RANDOM 0x0002
#endif /*GRND_RANDOM */
#define SET_ERRNO(no) rt_set_errno(-(no))
@@ -4271,7 +4271,7 @@ int sys_mq_timedsend(mqd_t mqd, const char *msg, size_t len, unsigned prio, cons
kmsg = (char *)kmem_get(len + 1);
if (!kmsg)
return -ENOMEM;
-
+
lwp_get_from_user(&at_k, (void *)at, sizeof(struct timespec));
lwp_get_from_user(kmsg, (void *)msg, len + 1);
ret = mq_timedsend(mqd, kmsg, len, prio, &at_k);