Introduction
Introduction Statistics Contact Development Disclaimer Help
tSet ret to -1 on error - spoon - dwm status utility (2f30 fork)
git clone git://src.adamsgaard.dk/spoon
Log
Files
Refs
LICENSE
---
commit a1083a672848a04e871ce0e8ad96c367e55549e5
parent a0dad9bb5687f35a14c415828a24d84f1ffc1fbe
Author: sin <[email protected]>
Date: Mon, 26 Sep 2016 16:51:31 +0100
Set ret to -1 on error
Diffstat:
M spoon.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/spoon.c b/spoon.c
t@@ -54,7 +54,7 @@ mpdread(char *buf, size_t len)
if (conn == NULL)
return -1;
if (mpd_connection_get_error(conn) != MPD_ERROR_SUCCESS) {
- warnx("cannot connect to mpd");
+ ret = -1;
goto out;
}
}
t@@ -90,6 +90,7 @@ mpdread(char *buf, size_t len)
}
return 0;
out:
+ warnx("failed to talk to mpd");
mpd_connection_free(conn);
conn = NULL;
return ret;
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.