From 787aca4f4ed121b068d61260445ccaf175cd0f9d Mon Sep 17 00:00:00 2001 From: Alin Jerpelea Date: Sat, 3 Apr 2021 17:10:55 +0200 Subject: [PATCH] graphics: vnc: fix nxstyle errors fix errors reported by nxstyle Signed-off-by: Alin Jerpelea --- graphics/nxterm/nxterm.h | 18 +++++++++++------- graphics/vnc/server/vnc_receiver.c | 3 ++- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/graphics/nxterm/nxterm.h b/graphics/nxterm/nxterm.h index 03a7eaf640..45d84d3b34 100644 --- a/graphics/nxterm/nxterm.h +++ b/graphics/nxterm/nxterm.h @@ -40,7 +40,7 @@ * Pre-processor Definitions ****************************************************************************/ -/* NxTerm Definitions ****************************************************/ +/* NxTerm Definitions *******************************************************/ /* Bitmap flags */ @@ -103,7 +103,7 @@ struct nxterm_bitmap_s struct nxgl_point_s pos; /* Character position */ }; -/* Describes the state of one NX console driver*/ +/* Describes the state of one NX console driver */ struct nxterm_state_s { @@ -186,7 +186,8 @@ int nxterm_sempost(FAR struct nxterm_state_s *priv); /* Common device registration/un-registration */ FAR struct nxterm_state_s *nxterm_register(NXTERM handle, - FAR struct nxterm_window_s *wndo, FAR const struct nxterm_operations_s *ops, + FAR struct nxterm_window_s *wndo, + FAR const struct nxterm_operations_s *ops, int minor); #ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS void nxterm_unregister(FAR struct nxterm_state_s *priv); @@ -210,20 +211,23 @@ int nxterm_resize(NXTERM handle, FAR const struct nxgl_size_s *size); /* VT100 Terminal emulation */ -enum nxterm_vt100state_e nxterm_vt100(FAR struct nxterm_state_s *priv, char ch); +enum nxterm_vt100state_e nxterm_vt100(FAR struct nxterm_state_s *priv, + char ch); /* Generic text display helpers */ void nxterm_home(FAR struct nxterm_state_s *priv); void nxterm_clear(FAR struct nxterm_state_s *priv); void nxterm_newline(FAR struct nxterm_state_s *priv); -FAR const struct nxterm_bitmap_s *nxterm_addchar(FAR struct nxterm_state_s *priv, - uint8_t ch); +FAR const +struct nxterm_bitmap_s *nxterm_addchar(FAR struct nxterm_state_s *priv, + uint8_t ch); int nxterm_hidechar(FAR struct nxterm_state_s *priv, FAR const struct nxterm_bitmap_s *bm); int nxterm_backspace(FAR struct nxterm_state_s *priv); void nxterm_fillchar(FAR struct nxterm_state_s *priv, - FAR const struct nxgl_rect_s *rect, FAR const struct nxterm_bitmap_s *bm); + FAR const struct nxgl_rect_s *rect, + FAR const struct nxterm_bitmap_s *bm); void nxterm_putc(FAR struct nxterm_state_s *priv, uint8_t ch); void nxterm_showcursor(FAR struct nxterm_state_s *priv); diff --git a/graphics/vnc/server/vnc_receiver.c b/graphics/vnc/server/vnc_receiver.c index c0410abf99..d8986e6214 100644 --- a/graphics/vnc/server/vnc_receiver.c +++ b/graphics/vnc/server/vnc_receiver.c @@ -277,7 +277,8 @@ int vnc_receiver(FAR struct vnc_session_s *session) 1); if (ret < 0) { - gerr("ERROR: Failed to read FramebufferUpdateRequest message: %d\n", + gerr("ERROR: " + "Failed to read FramebufferUpdateRequest message: %d\n", ret); } else