[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:
Avuton Olrich 2006-07-14 21:01:19 +00:00
parent fd2f9b8e86
commit d0c08c5218
2 changed files with 65 additions and 70 deletions

View File

@ -602,7 +602,7 @@ void lockPlaylistInteraction() {
}
}
void unlockPlaylistInteraction() {
static void unlockPlaylistInteraction() {
playerQueueUnlock();
}
@ -627,11 +627,8 @@ int addToPlaylist(FILE * fp, char * url, int printId) {
if((song = getSongFromDB(url))) {
}
else if(isValidRemoteUtf8Url(url) &&
(song = newSong(url, SONG_TYPE_URL, NULL)))
{
}
else {
else if(!(isValidRemoteUtf8Url(url) &&
(song = newSong(url, SONG_TYPE_URL, NULL)))) {
commandError(fp, ACK_ERROR_NO_EXIST,
"\"%s\" is not in the music db or is "
"not a valid url", url);
@ -1128,7 +1125,7 @@ int moveSongInPlaylistById(FILE * fp, int id1, int to) {
return moveSongInPlaylist(fp, playlist.idToPosition[id1], to);
}
void orderPlaylist() {
static void orderPlaylist() {
int i;
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];
playlist.order[a] = playlist.order[b];
playlist.order[b] = bak;
}
void randomizeOrder(int start,int end) {
static void randomizeOrder(int start,int end) {
int i;
int ri;

View File

@ -34,8 +34,6 @@ void initPlaylist();
void finishPlaylist();
void initPlaylist();
void readPlaylistState();
void savePlaylistState();