From 6beda1bcee4396ceced99b8a8c5627940f507ace Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 20 Dec 2020 23:09:31 +0000 Subject: internals: error tracing: record the not-found path upon ENOENT as needed. --- src/internal/slibtool_errinfo_impl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/internal/slibtool_errinfo_impl.h') diff --git a/src/internal/slibtool_errinfo_impl.h b/src/internal/slibtool_errinfo_impl.h index a1d3b61..1c3fb9f 100644 --- a/src/internal/slibtool_errinfo_impl.h +++ b/src/internal/slibtool_errinfo_impl.h @@ -19,7 +19,7 @@ int slbt_record_error( unsigned eflags, void * eany); -#define SLBT_SYSTEM_ERROR(dctx) \ +#define SLBT_SYSTEM_ERROR(dctx,eany) \ slbt_record_error( \ dctx, \ errno, \ @@ -27,7 +27,7 @@ int slbt_record_error( __func__, \ __LINE__, \ SLBT_ERROR_TOP_LEVEL, \ - 0) + (void *)eany) #define SLBT_BUFFER_ERROR(dctx) \ slbt_record_error( \ -- cgit v1.2.3