On Sat, May 23, 2026 at 08:43:23PM +0800, Kevin J. McCarthy wrote:
With the creation of mutt_errno_dbg(), a lot of direct errno handling
is now moved inside the macro.

Remove the include header from other parts of the code that are not
directly referencing errno anymore.

Move the "#include <errno.h>" inside the lib.h header, where the macro
is defined, conditionally based on #ifdef DEBUG.  That way callers of
the macro don't have to think about including the header.

Fix three muttdbg() calls in mutt_socket.c that were referencing
strerror(errno) to instead call mutt_errno_dbg().

I've pushed this up, with the last paragraph's changes broken into an initial commit.

--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA

Attachment: signature.asc
Description: PGP signature

Reply via email to