You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2026/10/12 01:04:49 UTC
(nuttx-apps) branch master updated (ba47d6cff -> 56c9b325c)
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang781216 pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
from ba47d6cff workflows/build.yml: Fix related to prolonged use of the msys2 job
new ae2dcf6b8 netutils/netcat: Fix the nxstyle error in netcat_main.c.
new 56c9b325c netutils/netcat, system/nxinit: Include the headers that are used.
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
netutils/netcat/netcat_main.c | 3 +++
system/nxinit/parser.c | 1 +
2 files changed, 4 insertions(+)
(nuttx-apps) 01/02: netutils/netcat: Fix the nxstyle error in netcat_main.c.
Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
commit ae2dcf6b8f04885fecbd3ae34a7c45d738533f27
Author: Marco Casaroli <ma...@gmail.com>
AuthorDate: Sat Oct 10 23:42:32 2026 +0200
netutils/netcat: Fix the nxstyle error in netcat_main.c.
Add the blank line after the declarations in main(). No code change.
Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marco Casaroli <ma...@gmail.com>
---
netutils/netcat/netcat_main.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/netutils/netcat/netcat_main.c b/netutils/netcat/netcat_main.c
index 4c5d96704..99152d3de 100644
--- a/netutils/netcat/netcat_main.c
+++ b/netutils/netcat/netcat_main.c
@@ -325,6 +325,7 @@ out:
int main(int argc, FAR char *argv[])
{
int status = EXIT_SUCCESS;
+
if (2 > argc)
{
fprintf(stderr,
(nuttx-apps) 02/02: netutils/netcat, system/nxinit: Include the headers that are used.
Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
commit 56c9b325c7e87268a0d7342a348b99dc9b6212c7
Author: Marco Casaroli <ma...@gmail.com>
AuthorDate: Sat Oct 10 23:42:32 2026 +0200
netutils/netcat, system/nxinit: Include the headers that are used.
netcat_main.c uses errno and true, and nxinit/parser.c uses errno and
the error codes, but neither file includes errno.h, and netcat_main.c
does not include stdbool.h. They compile only because other headers
include them indirectly.
Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marco Casaroli <ma...@gmail.com>
---
netutils/netcat/netcat_main.c | 2 ++
system/nxinit/parser.c | 1 +
2 files changed, 3 insertions(+)
diff --git a/netutils/netcat/netcat_main.c b/netutils/netcat/netcat_main.c
index 99152d3de..9573505db 100644
--- a/netutils/netcat/netcat_main.c
+++ b/netutils/netcat/netcat_main.c
@@ -26,7 +26,9 @@
#include <nuttx/config.h>
+#include <errno.h>
#include <fcntl.h>
+#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
diff --git a/system/nxinit/parser.c b/system/nxinit/parser.c
index 8930dc7f5..e91e51e0d 100644
--- a/system/nxinit/parser.c
+++ b/system/nxinit/parser.c
@@ -25,6 +25,7 @@
****************************************************************************/
#include <ctype.h>
+#include <errno.h>
#include <fcntl.h>
#include <sched.h>
#include <stdio.h>