Browse Source

Osmo-CC: Minor compiler warning fixes

master
Andreas Eversberg 2 weeks ago
parent
commit
f4aa9b79bb
  1. 3
      src/libosmocc/message.c
  2. 2
      src/libosmocc/session.c

3
src/libosmocc/message.c

@ -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; \
} \

2
src/libosmocc/session.c

@ -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)
{

Loading…
Cancel
Save