net_modem and sb_dsp: Warning fixes.

This commit is contained in:
OBattler
2024-03-23 17:22:36 +01:00
parent f45fe7b121
commit f63cc093e1
2 changed files with 1 additions and 5 deletions

View File

@@ -141,8 +141,6 @@ typedef struct modem_t
netcard_t *card;
} modem_t;
static modem_t *instance;
#define MREG_AUTOANSWER_COUNT 0
#define MREG_RING_COUNT 1
#define MREG_ESCAPE_CHAR 2
@@ -576,7 +574,6 @@ modem_dial(modem_t* modem, const char* str)
else
{
char buf[128] = "";
const char *destination = buf;
strcpy(buf, str);
// Scan host for port
uint16_t port;
@@ -1106,7 +1103,6 @@ modem_rx(void *priv, uint8_t *buf, int io_len)
{
#if 1
modem_t* modem = (modem_t*)priv;
uint8_t c = 0;
uint32_t i = 0;
if (modem->tcpIpMode)

View File

@@ -2625,7 +2625,7 @@ sb_poll_i(void *priv)
dsp->record_pos_read += 2;
dsp->record_pos_read &= 0xFFFF;
if (dsp->espcm_sample_idx >= 19) {
int i, bit, table_addr, sigma, last_sigma;
int i, table_addr, sigma, last_sigma;
int8_t min_sample = 127, max_sample = -128, s;
uint8_t b;