Commit d537d0fb authored by Evan Hunt's avatar Evan Hunt
Browse files

slience strerror_r 'unused return value' warnings

parent e2a2f08e
Pipeline #4322 failed with stages
in 4 minutes and 8 seconds
......@@ -34,4 +34,8 @@ isc_string_strlcat(char *dst, const char *src, size_t size);
#define strlcat isc_string_strlcat
#endif
int
isc_string_strerror(int errnum, char *buf, size_t buflen);
#define strerror_r isc_string_strerror
ISC_LANG_ENDDECLS
......@@ -16,7 +16,6 @@
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <sys/time.h>
#include <errno.h>
......@@ -24,6 +23,7 @@
#include <isc/mutex.h>
#include <isc/util.h>
#include <isc/print.h>
#include <isc/string.h>
#include <isc/once.h>
#if ISC_MUTEX_PROFILE
......
......@@ -103,3 +103,8 @@ isc_string_strlcat(char *dst, const char *src, size_t size)
return(dlen + (s - src)); /* count does not include NUL */
}
int
isc_string_strerror(int errnum, char *buf, size_t buflen) {
return (strerror_r(errnum, buf, buflen));
}
......@@ -15,10 +15,10 @@
#include <config.h>
#include <stdbool.h>
#include <string.h>
#include <isc/platform.h>
#include <isc/result.h>
#include <isc/string.h>
#include <isc/util.h>
#include "errno2result.h"
......
......@@ -17,7 +17,7 @@
#include "errno2result.h"
#include <isc/result.h>
#include <isc/strerror.h>
#include <isc/string.h>
#include <isc/util.h>
/*
......
......@@ -614,6 +614,7 @@ isc_stdio_sync
isc_stdio_tell
isc_stdio_write
isc_stdtime_get
isc_string_strerror
isc_string_strlcat
isc_string_strlcpy
isc_symtab_count
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment