ap

An audio player suited to my tastes
Log | Files | Refs | README | LICENSE

commit 3e8eb99a9c559c3c8ec31d12dade25bd43074017
parent 1b152fdd9ee833285c15e3936c968b38c5448302
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date:   Tue, 20 Jul 2021 19:38:42 -0700

Use the provided error number in aplog

Diffstat:
Maps/log.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/aps/log.c b/aps/log.c @@ -52,7 +52,7 @@ apstrll(int level) } void -aplog(int level, char *message, int erno) +aplog(int level, char *message, int error) { struct iovec *v; struct iovec iov[7]; @@ -64,9 +64,9 @@ aplog(int level, char *message, int erno) aploadiov(v++, ": "); aploadiov(v++, message); } - if (errno) { + if (error) { aploadiov(v++, ": "); - aploadiov(v++, strerror(errno)); + aploadiov(v++, strerror(error)); } aploadiov(v++, ".\n"); writev(2, iov, v - iov);