summaryrefslogtreecommitdiff
path: root/src/test_libFLAC
diff options
context:
space:
mode:
authorJosh Coalson <jcoalson@users.sourceforce.net>2007-01-31 03:53:22 +0000
committerJosh Coalson <jcoalson@users.sourceforce.net>2007-01-31 03:53:22 +0000
commite3ec2ad59ef4991f8f90422b39c2509535bcc56b (patch)
tree320eedab9589c76bd1cdd4d6ae7a9de936be3ffd /src/test_libFLAC
parent44eead85340cd6d83adbd405603e3aad83924979 (diff)
downloadflac-e3ec2ad59ef4991f8f90422b39c2509535bcc56b.tar.gz
convert C prototypes for functions with no args from () to (void)
Diffstat (limited to 'src/test_libFLAC')
-rw-r--r--src/test_libFLAC/bitwriter.c2
-rw-r--r--src/test_libFLAC/bitwriter.h2
-rw-r--r--src/test_libFLAC/decoders.c6
-rw-r--r--src/test_libFLAC/decoders.h2
-rw-r--r--src/test_libFLAC/encoders.c6
-rw-r--r--src/test_libFLAC/encoders.h2
-rw-r--r--src/test_libFLAC/format.c2
-rw-r--r--src/test_libFLAC/format.h2
-rw-r--r--src/test_libFLAC/metadata.c6
-rw-r--r--src/test_libFLAC/metadata.h2
-rw-r--r--src/test_libFLAC/metadata_manip.c6
-rw-r--r--src/test_libFLAC/metadata_object.c2
12 files changed, 20 insertions, 20 deletions
diff --git a/src/test_libFLAC/bitwriter.c b/src/test_libFLAC/bitwriter.c
index a96daef9..83fd437e 100644
--- a/src/test_libFLAC/bitwriter.c
+++ b/src/test_libFLAC/bitwriter.c
@@ -50,7 +50,7 @@ struct FLAC__BitWriter {
#define TOTAL_BITS(bw) ((bw)->words*sizeof(bwword)*8 + (bw)->bits)
-FLAC__bool test_bitwriter()
+FLAC__bool test_bitwriter(void)
{
FLAC__BitWriter *bw;
FLAC__bool ok;
diff --git a/src/test_libFLAC/bitwriter.h b/src/test_libFLAC/bitwriter.h
index 04342594..d6f4b845 100644
--- a/src/test_libFLAC/bitwriter.h
+++ b/src/test_libFLAC/bitwriter.h
@@ -21,6 +21,6 @@
#include "FLAC/ordinals.h"
-FLAC__bool test_bitwriter();
+FLAC__bool test_bitwriter(void);
#endif
diff --git a/src/test_libFLAC/decoders.c b/src/test_libFLAC/decoders.c
index 42ab1eb1..1cfa3efd 100644
--- a/src/test_libFLAC/decoders.c
+++ b/src/test_libFLAC/decoders.c
@@ -89,12 +89,12 @@ static FLAC__bool die_s_(const char *msg, const FLAC__StreamDecoder *decoder)
return false;
}
-static void init_metadata_blocks_()
+static void init_metadata_blocks_(void)
{
mutils__init_metadata_blocks(&streaminfo_, &padding_, &seektable_, &application1_, &application2_, &vorbiscomment_, &cuesheet_, &picture_, &unknown_);
}
-static void free_metadata_blocks_()
+static void free_metadata_blocks_(void)
{
mutils__free_metadata_blocks(&streaminfo_, &padding_, &seektable_, &application1_, &application2_, &vorbiscomment_, &cuesheet_, &picture_, &unknown_);
}
@@ -1013,7 +1013,7 @@ static FLAC__bool test_stream_decoder(Layer layer, FLAC__bool is_ogg)
return true;
}
-FLAC__bool test_decoders()
+FLAC__bool test_decoders(void)
{
FLAC__bool is_ogg = false;
diff --git a/src/test_libFLAC/decoders.h b/src/test_libFLAC/decoders.h
index a1c188ae..54a4377c 100644
--- a/src/test_libFLAC/decoders.h
+++ b/src/test_libFLAC/decoders.h
@@ -21,6 +21,6 @@
#include "FLAC/ordinals.h"
-FLAC__bool test_decoders();
+FLAC__bool test_decoders(void);
#endif
diff --git a/src/test_libFLAC/encoders.c b/src/test_libFLAC/encoders.c
index 038b0785..441813ff 100644
--- a/src/test_libFLAC/encoders.c
+++ b/src/test_libFLAC/encoders.c
@@ -78,12 +78,12 @@ static FLAC__bool die_s_(const char *msg, const FLAC__StreamEncoder *encoder)
return false;
}
-static void init_metadata_blocks_()
+static void init_metadata_blocks_(void)
{
mutils__init_metadata_blocks(&streaminfo_, &padding_, &seektable_, &application1_, &application2_, &vorbiscomment_, &cuesheet_, &picture_, &unknown_);
}
-static void free_metadata_blocks_()
+static void free_metadata_blocks_(void)
{
mutils__free_metadata_blocks(&streaminfo_, &padding_, &seektable_, &application1_, &application2_, &vorbiscomment_, &cuesheet_, &picture_, &unknown_);
}
@@ -489,7 +489,7 @@ static FLAC__bool test_stream_encoder(Layer layer, FLAC__bool is_ogg)
return true;
}
-FLAC__bool test_encoders()
+FLAC__bool test_encoders(void)
{
FLAC__bool is_ogg = false;
diff --git a/src/test_libFLAC/encoders.h b/src/test_libFLAC/encoders.h
index 291fdba3..9e0bdcc5 100644
--- a/src/test_libFLAC/encoders.h
+++ b/src/test_libFLAC/encoders.h
@@ -21,6 +21,6 @@
#include "FLAC/ordinals.h"
-FLAC__bool test_encoders();
+FLAC__bool test_encoders(void);
#endif
diff --git a/src/test_libFLAC/format.c b/src/test_libFLAC/format.c
index 9c55a9a8..ce4c9d57 100644
--- a/src/test_libFLAC/format.c
+++ b/src/test_libFLAC/format.c
@@ -185,7 +185,7 @@ static struct {
{ 5, (const FLAC__byte*)"a=\xe1\xa5\x80", true }
};
-FLAC__bool test_format()
+FLAC__bool test_format(void)
{
unsigned i;
diff --git a/src/test_libFLAC/format.h b/src/test_libFLAC/format.h
index 2e7586b6..3f4f2e68 100644
--- a/src/test_libFLAC/format.h
+++ b/src/test_libFLAC/format.h
@@ -21,6 +21,6 @@
#include "FLAC/ordinals.h"
-FLAC__bool test_format();
+FLAC__bool test_format(void);
#endif
diff --git a/src/test_libFLAC/metadata.c b/src/test_libFLAC/metadata.c
index a972d406..64293809 100644
--- a/src/test_libFLAC/metadata.c
+++ b/src/test_libFLAC/metadata.c
@@ -23,10 +23,10 @@
#include "metadata.h"
#include <stdio.h>
-extern FLAC__bool test_metadata_object();
-extern FLAC__bool test_metadata_file_manipulation();
+extern FLAC__bool test_metadata_object(void);
+extern FLAC__bool test_metadata_file_manipulation(void);
-FLAC__bool test_metadata()
+FLAC__bool test_metadata(void)
{
if(!test_metadata_object())
return false;
diff --git a/src/test_libFLAC/metadata.h b/src/test_libFLAC/metadata.h
index 6c931e45..14e843aa 100644
--- a/src/test_libFLAC/metadata.h
+++ b/src/test_libFLAC/metadata.h
@@ -21,6 +21,6 @@
#include "FLAC/ordinals.h"
-FLAC__bool test_metadata();
+FLAC__bool test_metadata(void);
#endif
diff --git a/src/test_libFLAC/metadata_manip.c b/src/test_libFLAC/metadata_manip.c
index 6a1cc52c..0cb146d2 100644
--- a/src/test_libFLAC/metadata_manip.c
+++ b/src/test_libFLAC/metadata_manip.c
@@ -681,7 +681,7 @@ static FLAC__bool remove_file_(const char *filename)
return true;
}
-static FLAC__bool test_level_0_()
+static FLAC__bool test_level_0_(void)
{
FLAC__StreamMetadata streaminfo;
FLAC__StreamMetadata *tags = 0;
@@ -760,7 +760,7 @@ static FLAC__bool test_level_0_()
return true;
}
-static FLAC__bool test_level_1_()
+static FLAC__bool test_level_1_(void)
{
FLAC__Metadata_SimpleIterator *iterator;
FLAC__StreamMetadata *block, *app, *padding;
@@ -2093,7 +2093,7 @@ static FLAC__bool test_level_2_misc_(FLAC__bool is_ogg)
return true;
}
-FLAC__bool test_metadata_file_manipulation()
+FLAC__bool test_metadata_file_manipulation(void)
{
printf("\n+++ libFLAC unit test: metadata manipulation\n\n");
diff --git a/src/test_libFLAC/metadata_object.c b/src/test_libFLAC/metadata_object.c
index 109d5d54..25ab76c8 100644
--- a/src/test_libFLAC/metadata_object.c
+++ b/src/test_libFLAC/metadata_object.c
@@ -513,7 +513,7 @@ static void pi_set_data(FLAC__StreamMetadata *block, const FLAC__byte *data, FLA
block->length += len;
}
-FLAC__bool test_metadata_object()
+FLAC__bool test_metadata_object(void)
{
FLAC__StreamMetadata *block, *blockcopy, *vorbiscomment, *cuesheet, *picture;
FLAC__StreamMetadata_SeekPoint seekpoint_array[14];