564102c1a777c06cb2f42285d097443804a7c6c3
1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## static_sstrerror.dpatch by Sebastian Harl <sh@tokkee.org>
3 ##
4 ## DP: src/liboping.c: Made sstrerror() static.
5 ## DP:
6 ## DP: This is a private helper function only.
8 @DPATCH@
10 diff a/src/liboping.c b/src/liboping.c
11 --- a/src/liboping.c
12 +++ b/src/liboping.c
13 @@ -145,7 +145,7 @@ struct pingobj
14 /* Even though Posix requires "strerror_r" to return an "int",
15 * some systems (e.g. the GNU libc) return a "char *" _and_
16 * ignore the second argument ... -tokkee */
17 -char *sstrerror (int errnum, char *buf, size_t buflen)
18 +static char *sstrerror (int errnum, char *buf, size_t buflen)
19 {
20 buf[0] = 0;