格式化代码

This commit is contained in:
zhkag 2023-01-07 07:41:52 +00:00 committed by guo
parent 7fc3b2d7b5
commit 7f9ccd3c80
2 changed files with 5 additions and 5 deletions

View File

@ -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 * SPDX-License-Identifier: Apache-2.0
* *

View File

@ -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 * SPDX-License-Identifier: Apache-2.0
* *
@ -68,11 +68,11 @@
#include "lwp_ipc_internal.h" #include "lwp_ipc_internal.h"
#include <sched.h> #include <sched.h>
#ifndef GRND_NONBLOCK #ifndef GRND_NONBLOCK
#define GRND_NONBLOCK 0x0001 #define GRND_NONBLOCK 0x0001
#endif /* GRND_NONBLOCK */ #endif /* GRND_NONBLOCK */
#ifndef GRND_RANDOM #ifndef GRND_RANDOM
#define GRND_RANDOM 0x0002 #define GRND_RANDOM 0x0002
#endif /*GRND_RANDOM */ #endif /*GRND_RANDOM */
#define SET_ERRNO(no) rt_set_errno(-(no)) #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); kmsg = (char *)kmem_get(len + 1);
if (!kmsg) if (!kmsg)
return -ENOMEM; return -ENOMEM;
lwp_get_from_user(&at_k, (void *)at, sizeof(struct timespec)); lwp_get_from_user(&at_k, (void *)at, sizeof(struct timespec));
lwp_get_from_user(kmsg, (void *)msg, len + 1); lwp_get_from_user(kmsg, (void *)msg, len + 1);
ret = mq_timedsend(mqd, kmsg, len, prio, &at_k); ret = mq_timedsend(mqd, kmsg, len, prio, &at_k);