aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2006-08-07 20:06:46 +0000
committerEric Wong <normalperson@yhbt.net>2006-08-07 20:06:46 +0000
commit5f1e53e88745f9387d76404771992d2a6e2ea535 (patch)
tree5503b28a4349c80e2ecc96a74fb228305140b68d /src
parent831ee7c63ef8582734b5671b2170cf2750431d0c (diff)
downloadmpd-5f1e53e88745f9387d76404771992d2a6e2ea535.tar.gz
mpd-5f1e53e88745f9387d76404771992d2a6e2ea535.tar.xz
mpd-5f1e53e88745f9387d76404771992d2a6e2ea535.zip
command: static-fication since commandError is no longer a macro
git-svn-id: https://svn.musicpd.org/mpd/trunk@4593 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/command.c4
-rw-r--r--src/command.h3
2 files changed, 2 insertions, 5 deletions
diff --git a/src/command.c b/src/command.c
index 0817b983f..f32a03466 100644
--- a/src/command.c
+++ b/src/command.c
@@ -131,8 +131,8 @@ struct _CommandEntry {
CommandListHandlerFunction listHandler;
};
-char *current_command = NULL;
-int command_listNum = 0;
+static char *current_command = NULL;
+static int command_listNum = 0;
static CommandEntry *getCommandEntryFromString(char *string, int *permission);
diff --git a/src/command.h b/src/command.h
index fdb1e0869..6cdc4ed44 100644
--- a/src/command.h
+++ b/src/command.h
@@ -34,9 +34,6 @@
#define COMMAND_RETURN_CLOSE 20
#define COMMAND_MASTER_READY 30
-extern char *current_command;
-extern int command_listNum;
-
int processListOfCommands(int fd, int *permission, int *expired,
int listOK, struct strnode *list);