mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
convert C prototypes for functions with no args from () to (void)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -21,6 +21,6 @@
|
||||
|
||||
#include "FLAC/ordinals.h"
|
||||
|
||||
FLAC__bool test_bitwriter();
|
||||
FLAC__bool test_bitwriter(void);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -21,6 +21,6 @@
|
||||
|
||||
#include "FLAC/ordinals.h"
|
||||
|
||||
FLAC__bool test_decoders();
|
||||
FLAC__bool test_decoders(void);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -21,6 +21,6 @@
|
||||
|
||||
#include "FLAC/ordinals.h"
|
||||
|
||||
FLAC__bool test_encoders();
|
||||
FLAC__bool test_encoders(void);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -21,6 +21,6 @@
|
||||
|
||||
#include "FLAC/ordinals.h"
|
||||
|
||||
FLAC__bool test_format();
|
||||
FLAC__bool test_format(void);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -21,6 +21,6 @@
|
||||
|
||||
#include "FLAC/ordinals.h"
|
||||
|
||||
FLAC__bool test_metadata();
|
||||
FLAC__bool test_metadata(void);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -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");
|
||||
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user