mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-20 18:40:31 +00:00
fix warnings in lwip/dhcpserver and btstack_chipset_em901
This commit is contained in:
parent
b5674ee206
commit
946d87bab9
2
3rd-party/lwip/dhcp-server/dhserver.c
vendored
2
3rd-party/lwip/dhcp-server/dhserver.c
vendored
@ -119,7 +119,7 @@ static __inline bool is_vacant(dhcp_entry_t *entry)
|
||||
return memcmp("\0\0\0\0\0", entry->mac, 6) == 0;
|
||||
}
|
||||
|
||||
static dhcp_entry_t *vacant_address()
|
||||
static dhcp_entry_t *vacant_address(void)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < config->num_entry; i++)
|
||||
|
@ -147,7 +147,6 @@ static enum {
|
||||
UPLOAD_ACTIVE,
|
||||
} upload_state;
|
||||
|
||||
#endif
|
||||
|
||||
// CRC32 implementation using 4-bit lookup table created by pycrc v0.9.1, https://pycrc.org
|
||||
// ./pycrc.py --model crc-32 --algorithm table-driven --table-idx-width=4 --generate c
|
||||
@ -156,7 +155,7 @@ static const uint32_t crc32_table[16] = {
|
||||
0xedb88320, 0xf00f9344, 0xd6d6a3e8, 0xcb61b38c, 0x9b64c2b0, 0x86d3d2d4, 0xa00ae278, 0xbdbdf21c
|
||||
};
|
||||
|
||||
uint32_t btstack_crc32(const uint8_t *buf, uint16_t size){
|
||||
static uint32_t btstack_crc32(const uint8_t *buf, uint16_t size){
|
||||
uint16_t pos;
|
||||
uint32_t crc = 0xffffffff;
|
||||
for (pos=0 ; pos<size ; pos++){
|
||||
@ -168,6 +167,8 @@ uint32_t btstack_crc32(const uint8_t *buf, uint16_t size){
|
||||
return ~crc;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
static void chipset_set_bd_addr_command(bd_addr_t addr, uint8_t *hci_cmd_buffer){
|
||||
little_endian_store_16(hci_cmd_buffer, 0, OPCODE(OGF_VENDOR, 0x02));
|
||||
hci_cmd_buffer[2] = 0x06;
|
||||
|
Loading…
x
Reference in New Issue
Block a user