Osmo-CC: Minor compiler warning fixes
This commit is contained in:
parent
641ba0881f
commit
f4aa9b79bb
|
@ -33,7 +33,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
#define _OSMO_CC_NAME2VALUE(array) { \
|
#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)) \
|
if (!strcasecmp(array[value], name)) \
|
||||||
return value; \
|
return value; \
|
||||||
} \
|
} \
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#include "../liboptions/options.h"
|
#include "../liboptions/options.h"
|
||||||
#include "endpoint.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)
|
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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue