diff --git a/src/libmpdclient.cc b/src/libmpdclient.cc index 299609f1..40315afb 100644 --- a/src/libmpdclient.cc +++ b/src/libmpdclient.cc @@ -33,8 +33,8 @@ * */ -#include "conky.h" #include "libmpdclient.h" +#include "conky.h" #include #include @@ -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(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,