1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-15 17:47:09 +00:00

More build fixes.

This commit is contained in:
Brenden Matthews 2018-12-22 15:42:46 -05:00
parent dfd10667fd
commit d191a5fa5c
No known key found for this signature in database
GPG Key ID: 60FBD122E62B0D30

View File

@ -33,8 +33,8 @@
*
*/
#include "conky.h"
#include "libmpdclient.h"
#include "conky.h"
#include <fcntl.h>
#include <sys/param.h>
@ -424,7 +424,8 @@ mpd_Connection *mpd_newConnection(const char *host, int port, float timeout) {
connection->buflen += readed;
connection->buffer[connection->buflen] = '\0';
} else if (err < 0) {
if (SELECT_ERRNO_IGNORE) { continue; }
if
SELECT_ERRNO_IGNORE { continue; }
snprintf(connection->errorStr, MPD_ERRORSTR_MAX_LENGTH,
"problems connecting to \"%s\" on port %i", host, port);
connection->error = MPD_ERROR_CONNPORT;
@ -496,7 +497,8 @@ static void mpd_executeCommand(mpd_Connection *connection,
if (ret != 1 && !SELECT_ERRNO_IGNORE) { break; }
ret = send(connection->sock, commandPtr, commandLen, MSG_DONTWAIT);
if (ret <= 0) {
if (SENDRECV_ERRNO_IGNORE) { continue; }
if
SENDRECV_ERRNO_IGNORE { continue; }
snprintf(connection->errorStr, MPD_ERRORSTR_MAX_LENGTH,
"problems giving command \"%s\"", command);
connection->error = MPD_ERROR_SENDING;
@ -1876,8 +1878,8 @@ void mpd_startFieldSearch(mpd_Connection *connection, int type) {
len = 5 + strlen(strtype) + 1;
connection->request = static_cast<char *>(malloc(len));
snprintf(connection->request, len, "list %c%s", tolower((unsigned char)strtype[0]),
strtype + 1);
snprintf(connection->request, len, "list %c%s",
tolower((unsigned char)strtype[0]), strtype + 1);
}
void mpd_addConstraintSearch(mpd_Connection *connection, int type,