aboutsummaryrefslogtreecommitdiffstats
path: root/src/fuvst
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2024-04-05 21:51:41 +0200
committerAndreas Eversberg <jolly@eversberg.eu>2024-04-05 21:51:41 +0200
commit6e2fd793ac492c2607f3b1a58f4d8903506103c9 (patch)
tree50261c6782f6252c1d764b3ff460346093d89bc5 /src/fuvst
parent470fc4934100d44fef1d243ae88a8e100b3947ee (diff)
Increase compiler warnings and fix them
Diffstat (limited to 'src/fuvst')
-rw-r--r--src/fuvst/Makefile.am2
-rwxr-xr-xsrc/fuvst/fuvst.c16
-rwxr-xr-xsrc/fuvst/mup.c2
-rw-r--r--src/fuvst/sniffer.c2
4 files changed, 11 insertions, 11 deletions
diff --git a/src/fuvst/Makefile.am b/src/fuvst/Makefile.am
index 73a7708..983ea4e 100644
--- a/src/fuvst/Makefile.am
+++ b/src/fuvst/Makefile.am
@@ -1,4 +1,4 @@
-AM_CPPFLAGS = -Wall -Wextra -g $(all_includes)
+AM_CPPFLAGS = -Wall -Wextra -Wmissing-prototypes -g $(all_includes)
if HAVE_ALSA
bin_PROGRAMS = \
diff --git a/src/fuvst/fuvst.c b/src/fuvst/fuvst.c
index e5eda00..847876e 100755
--- a/src/fuvst/fuvst.c
+++ b/src/fuvst/fuvst.c
@@ -449,7 +449,7 @@ static const char *transaction2rufnummer(transaction_t *trans)
return nut2rufnummer(trans->futln_nat, trans->futln_fuvst, trans->futln_rest);
}
-const char *state_name(enum call_state state)
+static const char *state_name(enum call_state state)
{
static char invalid[16];
@@ -478,7 +478,7 @@ const char *state_name(enum call_state state)
return invalid;
}
-void display_status(void)
+static void display_status(void)
{
sender_t *sender;
fuvst_t *fuvst;
@@ -515,7 +515,7 @@ static void new_call_state(transaction_t *trans, enum call_state new_state)
display_status();
}
-transaction_t *search_transaction_number(uint8_t futln_nat, uint8_t futln_fuvst, uint16_t futln_rest)
+static transaction_t *search_transaction_number(uint8_t futln_nat, uint8_t futln_fuvst, uint16_t futln_rest)
{
transaction_t *trans = trans_list;
@@ -533,7 +533,7 @@ transaction_t *search_transaction_number(uint8_t futln_nat, uint8_t futln_fuvst,
return NULL;
}
-transaction_t *search_transaction_ident(uint8_t ident)
+static transaction_t *search_transaction_ident(uint8_t ident)
{
transaction_t *trans = trans_list;
@@ -549,7 +549,7 @@ transaction_t *search_transaction_ident(uint8_t ident)
return NULL;
}
-transaction_t *search_transaction_callref(int callref)
+static transaction_t *search_transaction_callref(int callref)
{
transaction_t *trans = trans_list;
@@ -601,7 +601,7 @@ static void destroy_transaction(transaction_t *trans)
}
/* Timeout handling */
-void trans_timeout(void *data)
+static void trans_timeout(void *data)
{
transaction_t *trans = data;
@@ -722,7 +722,7 @@ static fuvst_t *get_spk(uint8_t Q)
}
/* Convert 'Ausloesegrund' of C-Netz base station to ISDN cause */
-int cnetz_fufst2cause(uint8_t X)
+static int cnetz_fufst2cause(uint8_t X)
{
switch (X) {
case 0: /* undefiniert */
@@ -745,7 +745,7 @@ int cnetz_fufst2cause(uint8_t X)
}
/* Convert ISDN cause to 'Ausloesegrund' of C-Netz mobile station */
-uint8_t cnetz_cause2futln(int cause)
+static uint8_t cnetz_cause2futln(int cause)
{
switch (cause) {
case CAUSE_NORMAL:
diff --git a/src/fuvst/mup.c b/src/fuvst/mup.c
index bdfc428..24f0c9f 100755
--- a/src/fuvst/mup.c
+++ b/src/fuvst/mup.c
@@ -671,7 +671,7 @@ void decode_abaf(uint8_t *data, int len, uint16_t *T, uint8_t *U, uint8_t *N)
static char digit2char[16] = "0123456789a*#bcd";
/* MO call */
-void _decode_outgoing(uint8_t *data, int len, uint16_t *T, uint8_t *U, uint8_t *N, char *number)
+static void _decode_outgoing(uint8_t *data, int len, uint16_t *T, uint8_t *U, uint8_t *N, char *number)
{
int i;
diff --git a/src/fuvst/sniffer.c b/src/fuvst/sniffer.c
index fc1f442..dcac22d 100644
--- a/src/fuvst/sniffer.c
+++ b/src/fuvst/sniffer.c
@@ -155,7 +155,7 @@ static void receive_bit(void *inst, int bit)
}
/* Destroy transceiver instance and unlink from list. */
-void sniffer_destroy(sender_t *sender)
+static void sniffer_destroy(sender_t *sender)
{
sniffer_t *sniffer = (sniffer_t *) sender;