diff options
| author | Alejandro Colomar <alx@kernel.org> | 2023-05-03 00:48:14 +0200 |
|---|---|---|
| committer | Alejandro Colomar <alx@kernel.org> | 2023-05-03 00:48:22 +0200 |
| commit | fe5dba139dc089eae4061fdc17f087e71f48b198 (patch) | |
| tree | 54af56b1b0138bde9a21e99372ab68ce4d64564a /man3/inet.3 | |
| parent | 5a0d9ed151e6449d978fabdd654cacc17b20a235 (diff) | |
| download | man-pages-fe5dba139dc089eae4061fdc17f087e71f48b198.tar.gz | |
man*/, man.ignore.grep: srcfix; warn about blank lines
- Use the dummy character to avoid warnings in examples.
- Re-enable the warning.
Suggested-by: "G. Branden Robinson" <g.branden.robinson@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'man3/inet.3')
| -rw-r--r-- | man3/inet.3 | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/man3/inet.3 b/man3/inet.3 index 8c69127886..e482f12e85 100644 --- a/man3/inet.3 +++ b/man3/inet.3 @@ -197,7 +197,7 @@ as: .in +4n .EX typedef uint32_t in_addr_t; - +\& struct in_addr { in_addr_t s_addr; }; @@ -303,22 +303,22 @@ Here are some example runs: #include <arpa/inet.h> #include <stdio.h> #include <stdlib.h> - +\& int main(int argc, char *argv[]) { struct in_addr addr; - +\& if (argc != 2) { fprintf(stderr, "%s <dotted\-address>\en", argv[0]); exit(EXIT_FAILURE); } - +\& if (inet_aton(argv[1], &addr) == 0) { fprintf(stderr, "Invalid address\en"); exit(EXIT_FAILURE); } - +\& printf("%s\en", inet_ntoa(addr)); exit(EXIT_SUCCESS); } |
