From 37dcd255ceb88c02cab500069956f4589c9d13e7 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 6 Aug 2011 22:11:57 +0200 Subject: [PATCH] write: Kill E_WRITE_SYNTAX. This value was used but no code path existed that would actually return this error, so remove it. --- error.h | 5 +---- write.c | 3 +-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/error.h b/error.h index b8078770..1e4bf044 100644 --- a/error.h +++ b/error.h @@ -34,6 +34,7 @@ DEFINE_ERRLIST_OBJECT_ENUM; #define STDOUT_ERRORS #define FILE_WRITE_ERRORS #define STDIN_ERRORS +#define WRITE_ERRORS extern const char **para_errlist[]; @@ -422,10 +423,6 @@ extern const char **para_errlist[]; PARA_ERROR(READ_PATTERN, "did not read expected pattern"), \ -#define WRITE_ERRORS \ - PARA_ERROR(WRITE_SYNTAX, "para_write syntax error"), \ - - #define ALSA_WRITE_ERRORS \ PARA_ERROR(BROKEN_CONF, "Broken alsa configuration"), \ PARA_ERROR(ACCESS_TYPE, "alsa access type not available"), \ diff --git a/write.c b/write.c index 3d1b0932..fcb477f8 100644 --- a/write.c +++ b/write.c @@ -224,7 +224,6 @@ static int setup_and_schedule(void) cwt->task.error = 0; register_task(&cwt->task); - ret = -E_WRITE_SYNTAX; if (!conf.writer_given) { i = 0; wns = para_calloc(sizeof(*wns)); @@ -287,7 +286,7 @@ out: */ int main(int argc, char *argv[]) { - int ret = -E_WRITE_SYNTAX; + int ret; writer_init(); write_cmdline_parser(argc, argv, &conf); -- 2.39.5