Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
Icecast-Server
Commits
0af45ebf
Commit
0af45ebf
authored
Sep 13, 2018
by
Philipp Schafft
🦁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup: Replace and remove leftover old COMMAND_*s
parent
11a04c80
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
src/admin.c
src/admin.c
+2
-6
No files found.
src/admin.c
View file @
0af45ebf
...
...
@@ -62,10 +62,6 @@
#define COMMAND_OPTIONAL(client,name,var) \
(var) = httpp_get_param((client)->parser, (name))
/* special commands */
#define COMMAND_ERROR ADMIN_COMMAND_ERROR
#define COMMAND_ANY ADMIN_COMMAND_ANY
#define FALLBACK_RAW_REQUEST "fallbacks"
#define FALLBACK_HTML_REQUEST "fallbacks.xsl"
#define SHOUTCAST_METADATA_REQUEST "admin.cgi"
...
...
@@ -237,7 +233,7 @@ admin_command_id_t admin_get_command(const char *command)
const
char
*
suffix
;
if
(
table
==
NULL
)
return
COMMAND_ERROR
;
return
ADMIN_
COMMAND_ERROR
;
suffix
=
strchr
(
command
,
'/'
);
if
(
suffix
!=
NULL
)
{
...
...
@@ -250,7 +246,7 @@ admin_command_id_t admin_get_command(const char *command)
if
(
resourcematch_match
(
table
->
handlers
[
i
].
route
,
suffix
,
NULL
)
==
RESOURCEMATCH_MATCH
)
return
admin_get_command_by_table_and_index
(
table
,
i
);
return
COMMAND_ERROR
;
return
ADMIN_
COMMAND_ERROR
;
}
/* Get the command handler for command or NULL
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment