aboutsummaryrefslogtreecommitdiffstats
path: root/test/run_encoder.cxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/run_encoder.cxx (renamed from test/run_encoder.c)4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/run_encoder.c b/test/run_encoder.cxx
index db4d3af9b..6a1412969 100644
--- a/test/run_encoder.c
+++ b/test/run_encoder.cxx
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2011 The Music Player Daemon Project
+ * Copyright (C) 2003-2013 The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
@@ -51,7 +51,6 @@ int main(int argc, char **argv)
struct encoder *encoder;
struct config_param *param;
static char buffer[32768];
- ssize_t nbytes;
/* parse command line */
@@ -110,6 +109,7 @@ int main(int argc, char **argv)
/* do it */
+ ssize_t nbytes;
while ((nbytes = read(0, buffer, sizeof(buffer))) > 0) {
ret = encoder_write(encoder, buffer, nbytes, &error);
if (!ret) {