aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-22 21:40:36 +0200
committerMax Kellermann <max@duempel.org>2008-10-22 21:40:36 +0200
commit69c563b511cf9ab849242c3b3069efb3769592ea (patch)
tree548ec239bcbb7d81aabaf706cb11c505cbcfc328 /src
parentd0a9dcdcf53dfce14fad41166001b6c3ffb754bc (diff)
downloadmpd-69c563b511cf9ab849242c3b3069efb3769592ea.tar.gz
mpd-69c563b511cf9ab849242c3b3069efb3769592ea.tar.xz
mpd-69c563b511cf9ab849242c3b3069efb3769592ea.zip
command: removed CommandHandlerFunction typedef
The typedef CommandHandlerFunction is only used once. Move its type into the command struct.
Diffstat (limited to 'src')
-rw-r--r--src/command.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/command.c b/src/command.c
index 30d1af103..a9fc6cbb8 100644
--- a/src/command.c
+++ b/src/command.c
@@ -63,8 +63,6 @@
*/
#define COMMAND_ARGV_MAX (2+(TAG_NUM_OF_ITEM_TYPES*2))
-typedef int (*CommandHandlerFunction) (struct client *, int, char **);
-
/* if min: -1 don't check args *
* if max: -1 no max args */
struct command {
@@ -72,7 +70,7 @@ struct command {
unsigned reqPermission;
int min;
int max;
- CommandHandlerFunction handler;
+ int (*handler)(struct client *client, int argc, char **argv);
};
/* this should really be "need a non-negative integer": */