aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-01-26 12:46:09 +0000
committerEric Wong <normalperson@yhbt.net>2008-01-26 12:46:09 +0000
commit28008e697720bb2b11989bb887eb468b91409b1a (patch)
treeb9e7eec3bc6a74195a7b4d72cdd2d2897194e2b3
parent7d66859277280e48eb717756cd0b1f50b3ea2054 (diff)
downloadmpd-28008e697720bb2b11989bb887eb468b91409b1a.tar.gz
mpd-28008e697720bb2b11989bb887eb468b91409b1a.tar.xz
mpd-28008e697720bb2b11989bb887eb468b91409b1a.zip
fixed invalid C prototypes
Signed-off-by: Eric Wong <normalperson@yhbt.net> git-svn-id: https://svn.musicpd.org/mpd/trunk@7142 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/audioOutput.h2
-rw-r--r--src/audioOutputs/audioOutput_fifo.c2
-rw-r--r--src/directory.c2
-rw-r--r--src/inputPlugin.h4
-rw-r--r--src/mp4ff/drms.c2
-rw-r--r--src/mp4ff/drms.h2
-rw-r--r--src/tagTracker.h2
7 files changed, 8 insertions, 8 deletions
diff --git a/src/audioOutput.h b/src/audioOutput.h
index 6bde49b39..6c50776c2 100644
--- a/src/audioOutput.h
+++ b/src/audioOutput.h
@@ -33,7 +33,7 @@
typedef struct _AudioOutput AudioOutput;
-typedef int (*AudioOutputTestDefaultDeviceFunc) ();
+typedef int (*AudioOutputTestDefaultDeviceFunc) (void);
typedef int (*AudioOutputInitDriverFunc) (AudioOutput * audioOutput,
ConfigParam * param);
diff --git a/src/audioOutputs/audioOutput_fifo.c b/src/audioOutputs/audioOutput_fifo.c
index b01f37f67..d7b83fd7d 100644
--- a/src/audioOutputs/audioOutput_fifo.c
+++ b/src/audioOutputs/audioOutput_fifo.c
@@ -36,7 +36,7 @@ typedef struct _FifoData {
Timer *timer;
} FifoData;
-static FifoData *newFifoData()
+static FifoData *newFifoData(void)
{
FifoData *ret;
diff --git a/src/directory.c b/src/directory.c
index 9e2db4495..971a156ce 100644
--- a/src/directory.c
+++ b/src/directory.c
@@ -64,7 +64,7 @@ static volatile int directory_reReadDB;
static volatile mpd_uint16 directory_updateJobId;
-static DirectoryList *newDirectoryList();
+static DirectoryList *newDirectoryList(void);
static int addToDirectory(Directory * directory, char *shortname, char *name);
diff --git a/src/inputPlugin.h b/src/inputPlugin.h
index 6e9b21106..ecb1b9801 100644
--- a/src/inputPlugin.h
+++ b/src/inputPlugin.h
@@ -31,10 +31,10 @@
/* optional, set this to NULL if the InputPlugin doesn't have/need one
* this must return < 0 if there is an error and >= 0 otherwise */
-typedef int (*InputPlugin_initFunc) ();
+typedef int (*InputPlugin_initFunc) (void);
/* optional, set this to NULL if the InputPlugin doesn't have/need one */
-typedef void (*InputPlugin_finishFunc) ();
+typedef void (*InputPlugin_finishFunc) (void);
/* boolean return value, returns 1 if the InputStream is decodable by
* the InputPlugin, 0 if not */
diff --git a/src/mp4ff/drms.c b/src/mp4ff/drms.c
index 368b88110..77bc105e7 100644
--- a/src/mp4ff/drms.c
+++ b/src/mp4ff/drms.c
@@ -871,7 +871,7 @@ struct drms_s
#define P_DRMS ((struct drms_s *)p_drms)
-void *drms_alloc()
+void *drms_alloc(void)
{
struct drms_s *p_drms;
diff --git a/src/mp4ff/drms.h b/src/mp4ff/drms.h
index 42d957400..3555d5891 100644
--- a/src/mp4ff/drms.h
+++ b/src/mp4ff/drms.h
@@ -31,7 +31,7 @@ extern int drms_get_sys_key( uint32_t *p_sys_key );
extern int drms_get_user_key( uint32_t *p_sys_key,
uint32_t *p_user_key );
-extern void *drms_alloc();
+extern void *drms_alloc(void);
extern void drms_free( void *p_drms );
extern int drms_init( void *p_drms, uint32_t i_type,
uint8_t *p_info, uint32_t i_len );
diff --git a/src/tagTracker.h b/src/tagTracker.h
index 09d07f1dc..d3b605585 100644
--- a/src/tagTracker.h
+++ b/src/tagTracker.h
@@ -27,7 +27,7 @@ void removeTagItemString(int type, char *string);
int getNumberOfTagItems(int type);
-void printMemorySavedByTagTracker();
+void printMemorySavedByTagTracker(void);
void resetVisitedFlagsInTagTracker(int type);