Skip to content

Commit 1aa49c0

Browse files
committed
Fix deprecated function prototypes
1 parent d2608d1 commit 1aa49c0

File tree

6 files changed

+8
-10
lines changed

6 files changed

+8
-10
lines changed

src/baseband.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
static uint16_t scaled_squares[256];
2222

2323
/// precalculate lookup table for envelope detection.
24-
static void calc_squares()
24+
static void calc_squares(void)
2525
{
2626
if (scaled_squares[0])
2727
return; // already initialized

src/compat_paths.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
#include "compat_paths.h"
1515

16-
char **compat_get_default_conf_paths()
16+
char **compat_get_default_conf_paths(void)
1717
{
1818
static char *paths[5] = { NULL };
1919
static char buf[256] = "";
@@ -41,7 +41,7 @@ char **compat_get_default_conf_paths()
4141

4242
#include "compat_paths.h"
4343

44-
char **compat_get_default_conf_paths()
44+
char **compat_get_default_conf_paths(void)
4545
{
4646
static char bufs[3][256];
4747
static char *paths[4] = { NULL };

src/devices/elv.c

+1-3
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ static int em1000_callback(r_device *decoder, bitbuffer_t *bitbuffer)
3333
data_t *data;
3434
bitrow_t *bb = bitbuffer->bb;
3535
uint8_t dec[10];
36-
uint8_t bytes=0;
3736
uint8_t bit=18; // preamble
3837
uint8_t bb_p[14];
3938
//char* types[] = {"EM 1000-S", "EM 1000-?", "EM 1000-GZ"};
@@ -63,7 +62,6 @@ static int em1000_callback(r_device *decoder, bitbuffer_t *bitbuffer)
6362
return DECODE_ABORT_EARLY;
6463
}
6564
checksum_calculated ^= dec[i];
66-
bytes++;
6765
}
6866

6967
// Read checksum
@@ -73,7 +71,7 @@ static int em1000_callback(r_device *decoder, bitbuffer_t *bitbuffer)
7371
return DECODE_FAIL_MIC;
7472
}
7573

76-
// decoder_log_bitrow(decoder, 0, __func__, dec, bytes * 8, "");
74+
// decoder_log_bitrow(decoder, 0, __func__, dec, 9 * 8, "");
7775

7876
// based on 15_CUL_EM.pm
7977
//char *subtype = dec[0] >= 1 && dec[0] <= 3 ? types[dec[0] - 1] : "?";

src/devices/flex.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -341,14 +341,14 @@ static char *output_fields[] = {
341341
NULL,
342342
};
343343

344-
static void usage()
344+
static void usage(void)
345345
{
346346
fprintf(stderr,
347347
"Use -X <spec> to add a general purpose decoder. For usage use -X help\n");
348348
exit(1);
349349
}
350350

351-
static void help()
351+
static void help(void)
352352
{
353353
fprintf(stderr,
354354
"\t\t= Flex decoder spec =\n"

src/pulse_detect.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ struct pulse_detect {
5252
pulse_detect_fsk_t pulse_detect_fsk;
5353
};
5454

55-
pulse_detect_t *pulse_detect_create()
55+
pulse_detect_t *pulse_detect_create(void)
5656
{
5757
pulse_detect_t *pulse_detect = calloc(1, sizeof(pulse_detect_t));
5858
if (!pulse_detect) {

tests/data-test.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#include "data.h"
2424
#include "output_file.h"
2525

26-
int main()
26+
int main(void)
2727
{
2828
data_t *data = data_make("label" , "", DATA_STRING, "1.2.3",
2929
"house_code" , "House Code", DATA_INT, 42,

0 commit comments

Comments
 (0)