Kill duplicate para_fread()
[paraslash.git] / mp3.c
diff --git a/mp3.c b/mp3.c
index ab05d2e7d62989e61305700cbccf997d2b3641ff..bc253aa5aeaa7a787550f9619d55d2c263ce25c7 100644 (file)
--- a/mp3.c
+++ b/mp3.c
@@ -32,6 +32,7 @@
 #include "server.h"
 #include "afs.h"
 #include "error.h"
+#include "fd.h"
 
 /** \cond some defines and structs which are only used in this file */
 
@@ -108,16 +109,6 @@ static char mp3buf[8192];
 static int chunk_size;
 static struct audio_format *af;
 
-static __must_check int para_fread(void *ptr, size_t size, size_t nmemb, FILE *stream)
-{
-       size_t res = fread(ptr, size, nmemb, stream);
-       if (res == nmemb)
-               return size * nmemb;
-       if (feof(stream))
-               return 0;
-       return -E_FREAD;
-}
-
 static int header_frequency(struct mp3header *h)
 {
        if (h->version > 2 || h->freq > 3)