From d6a0da41d55d342aa5b434b98282c76cd996f1d3 Mon Sep 17 00:00:00 2001 From: "chao.an" Date: Wed, 24 Jun 2020 17:54:18 +0800 Subject: [PATCH] net/vfcntl: fix nxstyle warning Signed-off-by: chao.an --- net/socket/net_vfcntl.c | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/net/socket/net_vfcntl.c b/net/socket/net_vfcntl.c index f9cd2e4dbb..a065e4f5fc 100644 --- a/net/socket/net_vfcntl.c +++ b/net/socket/net_vfcntl.c @@ -86,7 +86,9 @@ int psock_vfcntl(FAR struct socket *psock, int cmd, va_list ap) return -EBADF; } - /* Interrupts must be disabled in order to perform operations on socket structures */ + /* Interrupts must be disabled in order to perform operations on socket + * structures + */ net_lock(); switch (cmd) @@ -97,9 +99,9 @@ int psock_vfcntl(FAR struct socket *psock, int cmd, va_list ap) * or equal to the third argument, arg, taken as an integer of type * int. The new file descriptor shall refer to the same open file * description as the original file descriptor, and shall share any - * locks. The FD_CLOEXEC flag associated with the new file descriptor - * shall be cleared to keep the file open across calls to one of the - * exec functions. + * locks. The FD_CLOEXEC flag associated with the new file + * descriptor shall be cleared to keep the file open across calls + * to one of the exec functions. */ { @@ -185,12 +187,13 @@ int psock_vfcntl(FAR struct socket *psock, int cmd, va_list ap) break; case F_SETFL: - /* Set the file status flags, defined in , for the file description - * associated with fd from the corresponding bits in the third argument, - * arg, taken as type int. Bits corresponding to the file access mode and - * the file creation flags, as defined in , that are set in arg - * will be ignored. If any bits in arg other than those mentioned here are - * changed by the application, the result is unspecified. + /* Set the file status flags, defined in , for the file + * description associated with fd from the corresponding bits in + * the third argument, arg, taken as type int. Bits corresponding + * to the file access mode and the file creation flags, as defined + * in , that are set in arg will be ignored. If any bits + * in arg other than those mentioned here are changed by the + * application, the result is unspecified. */ {