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:
parent
dfd10667fd
commit
d191a5fa5c
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user