Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
b332e1cb
Commit
b332e1cb
authored
Sep 07, 2008
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
command: removed commandError()
commandError() has been superseded by command_error(), and is not being used anymore. Remove it.
parent
f59986fa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
27 deletions
+0
-27
command.c
src/command.c
+0
-25
command.h
src/command.h
+0
-2
No files found.
src/command.c
View file @
b332e1cb
...
...
@@ -23,7 +23,6 @@
#include "directory.h"
#include "volume.h"
#include "stats.h"
#include "myfprintf.h"
#include "list.h"
#include "permission.h"
#include "buffer2array.h"
...
...
@@ -170,22 +169,6 @@ static CommandEntry *newCommandEntry(void)
return
cmd
;
}
static
void
command_error_va
(
int
fd
,
int
error
,
const
char
*
fmt
,
va_list
args
)
{
if
(
current_command
&&
fd
!=
STDERR_FILENO
)
{
fdprintf
(
fd
,
"ACK [%i@%i] {%s} "
,
(
int
)
error
,
command_listNum
,
current_command
);
vfdprintf
(
fd
,
fmt
,
args
);
fdprintf
(
fd
,
"
\n
"
);
current_command
=
NULL
;
}
else
{
fdprintf
(
STDERR_FILENO
,
"ACK [%i@%i] "
,
(
int
)
error
,
command_listNum
);
vfdprintf
(
STDERR_FILENO
,
fmt
,
args
);
fdprintf
(
STDERR_FILENO
,
"
\n
"
);
}
}
void
command_success
(
struct
client
*
client
)
{
client_puts
(
client
,
"OK
\n
"
);
...
...
@@ -1536,11 +1519,3 @@ int processCommand(struct client *client, int *permission, char *commandString)
{
return
processCommandInternal
(
client
,
permission
,
commandString
,
NULL
);
}
mpd_fprintf_
void
commandError
(
int
fd
,
int
error
,
const
char
*
fmt
,
...)
{
va_list
args
;
va_start
(
args
,
fmt
);
command_error_va
(
fd
,
error
,
fmt
,
args
);
va_end
(
args
);
}
src/command.h
View file @
b332e1cb
...
...
@@ -39,8 +39,6 @@ void initCommands(void);
void
finishCommands
(
void
);
mpd_fprintf_
void
commandError
(
int
fd
,
int
error
,
const
char
*
fmt
,
...);
void
command_success
(
struct
client
*
client
);
mpd_fprintf_
void
command_error
(
struct
client
*
client
,
int
error
,
...
...
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