Description: Disable the cfr_strerror function Author: Christoph Biedl Bug: https://bitbucket.org/ripencc/bgpdump/issues/31/ Last-Update: 2016-07-19 This function does not check the asprintf return value but it's not used anyway. So disable it. --- a/cfile_tools.c +++ b/cfile_tools.c @@ -430,6 +430,7 @@ } +#if 0 char * cfr_strerror(CFRFILE *stream) { // Result is "stream-i/o: [: ]" // Do not modify result. @@ -478,6 +479,7 @@ snprintf(res, sizeof(res), "%s", "Error: asprintf: out of memory"); return(res); } +#endif const char * cfr_compressor_str(CFRFILE *stream) { // Returns the name of the compressor used --- a/cfile_tools.h +++ b/cfile_tools.h @@ -68,7 +68,9 @@ ssize_t cfr_getline(char **lineptr, size_t *n, CFRFILE *stream); int cfr_eof(CFRFILE *stream); int cfr_error(CFRFILE *stream); +#if 0 char * cfr_strerror(CFRFILE *stream); +#endif const char * cfr_compressor_str(CFRFILE *stream); const char * _bz2_strerror(int err);