diff options
author | Collin Funk <collin.funk1@gmail.com> | 2025-09-28 15:36:32 -0700 |
---|---|---|
committer | Collin Funk <collin.funk1@gmail.com> | 2025-09-29 17:01:54 -0700 |
commit | a8ad2e9e431bac3ea207be07c64cddb72c290cde (patch) | |
tree | 30a114c69bfdc92bb379f94ec48e176a4ae65fca /misc/sys | |
parent | 1c539d79f6712a90613f898d43b620c7ae1d00fc (diff) | |
download | glibc-master.zip glibc-master.tar.gz glibc-master.tar.bz2 |
Previously this file failed to compile with the following errors:
$ gcc manual/examples/inetcli.c
manual/examples/inetcli.c: In function ‘write_to_server’:
manual/examples/inetcli.c:36:37: error: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration]
36 | nbytes = write (filedes, MESSAGE, strlen (MESSAGE) + 1);
| ^~~~~~
manual/examples/inetcli.c:26:1: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
25 | #include <netdb.h>
+++ |+#include <string.h>
26 |
manual/examples/inetcli.c:36:37: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch]
36 | nbytes = write (filedes, MESSAGE, strlen (MESSAGE) + 1);
| ^~~~~~
manual/examples/inetcli.c:36:37: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'misc/sys')
0 files changed, 0 insertions, 0 deletions