man-pages/man-pages-3.42-inet.patch
Peter Schiffer 9539c5865e - resolves: #837090
updated example on inet(3) man page - use fprintf(stderr,..) instead of perror
2012-09-12 12:47:55 +02:00

13 lines
395 B
Diff

diff -ur man-pages-3.42.orig/man3/inet.3 man-pages-3.42/man3/inet.3
--- man-pages-3.42.orig/man3/inet.3 2012-08-14 00:39:38.000000000 +0200
+++ man-pages-3.42/man3/inet.3 2012-09-12 12:35:46.908363695 +0200
@@ -286,7 +286,7 @@
}
if (inet_aton(argv[1], &addr) == 0) {
- perror("inet_aton");
+ fprintf(stderr, "Invalid address\\n");
exit(EXIT_FAILURE);
}