[CLEANUP] cleanup whitespace -> tabs
static where it makes sense git-svn-id: https://svn.musicpd.org/mpd/trunk@4344 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
fd2f9b8e86
commit
d0c08c5218
@ -602,7 +602,7 @@ void lockPlaylistInteraction() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void unlockPlaylistInteraction() {
|
static void unlockPlaylistInteraction() {
|
||||||
playerQueueUnlock();
|
playerQueueUnlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -627,11 +627,8 @@ int addToPlaylist(FILE * fp, char * url, int printId) {
|
|||||||
|
|
||||||
if((song = getSongFromDB(url))) {
|
if((song = getSongFromDB(url))) {
|
||||||
}
|
}
|
||||||
else if(isValidRemoteUtf8Url(url) &&
|
else if(!(isValidRemoteUtf8Url(url) &&
|
||||||
(song = newSong(url, SONG_TYPE_URL, NULL)))
|
(song = newSong(url, SONG_TYPE_URL, NULL)))) {
|
||||||
{
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
commandError(fp, ACK_ERROR_NO_EXIST,
|
commandError(fp, ACK_ERROR_NO_EXIST,
|
||||||
"\"%s\" is not in the music db or is "
|
"\"%s\" is not in the music db or is "
|
||||||
"not a valid url", url);
|
"not a valid url", url);
|
||||||
@ -1128,7 +1125,7 @@ int moveSongInPlaylistById(FILE * fp, int id1, int to) {
|
|||||||
return moveSongInPlaylist(fp, playlist.idToPosition[id1], to);
|
return moveSongInPlaylist(fp, playlist.idToPosition[id1], to);
|
||||||
}
|
}
|
||||||
|
|
||||||
void orderPlaylist() {
|
static void orderPlaylist() {
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if(playlist.current >= 0 && playlist.current < playlist.length) {
|
if(playlist.current >= 0 && playlist.current < playlist.length) {
|
||||||
@ -1149,13 +1146,13 @@ void orderPlaylist() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void swapOrder(int a, int b) {
|
static void swapOrder(int a, int b) {
|
||||||
int bak = playlist.order[a];
|
int bak = playlist.order[a];
|
||||||
playlist.order[a] = playlist.order[b];
|
playlist.order[a] = playlist.order[b];
|
||||||
playlist.order[b] = bak;
|
playlist.order[b] = bak;
|
||||||
}
|
}
|
||||||
|
|
||||||
void randomizeOrder(int start,int end) {
|
static void randomizeOrder(int start,int end) {
|
||||||
int i;
|
int i;
|
||||||
int ri;
|
int ri;
|
||||||
|
|
||||||
|
@ -34,8 +34,6 @@ void initPlaylist();
|
|||||||
|
|
||||||
void finishPlaylist();
|
void finishPlaylist();
|
||||||
|
|
||||||
void initPlaylist();
|
|
||||||
|
|
||||||
void readPlaylistState();
|
void readPlaylistState();
|
||||||
|
|
||||||
void savePlaylistState();
|
void savePlaylistState();
|
||||||
|
Loading…
Reference in New Issue
Block a user