Osmo-CC: Minor compiler warning fixes

This commit is contained in:
Andreas Eversberg 2022-06-12 09:47:48 +02:00
parent 641ba0881f
commit f4aa9b79bb
2 changed files with 3 additions and 2 deletions

View File

@ -33,7 +33,8 @@
}
#define _OSMO_CC_NAME2VALUE(array) { \
for (int value = 0; (size_t)value < (sizeof(array) / sizeof(array[0])); value++) { \
int value; \
for (value = 0; (size_t)value < (sizeof(array) / sizeof(array[0])); value++) { \
if (!strcasecmp(array[value], name)) \
return value; \
} \

View File

@ -29,7 +29,7 @@
#include "../liboptions/options.h"
#include "endpoint.h"
#define NTP_OFFSET 2208988800
#define NTP_OFFSET 2208988800U
void osmo_cc_set_local_peer(osmo_cc_session_config_t *conf, enum osmo_cc_session_nettype nettype, enum osmo_cc_session_addrtype addrtype, const char *address)
{