Skip to content

Commit

Permalink
Update for Interopability Tests obgm#3 (to be squashed later)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdeep1 committed Dec 30, 2022
1 parent 6152335 commit fc78eda
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/oscore-interop-server.c
Original file line number Diff line number Diff line change
Expand Up @@ -465,14 +465,14 @@ get_context(const char *node, const char *port) {

ep_udp = coap_new_endpoint(ctx, &addr, COAP_PROTO_UDP);
if (!ep_udp) {
coap_log(LOG_CRIT, "cannot create UDP endpoint\n");
coap_log_crit("cannot create UDP endpoint\n");
continue;
}
if (coap_tcp_is_supported()) {
coap_endpoint_t *ep_tcp;
ep_tcp = coap_new_endpoint(ctx, &addr, COAP_PROTO_TCP);
if (!ep_tcp) {
coap_log(LOG_CRIT, "cannot create TCP endpoint\n");
coap_log_crit("cannot create TCP endpoint\n");
}
}
if (ep_udp)
Expand Down Expand Up @@ -575,7 +575,7 @@ main(int argc, char **argv) {
char port_str[NI_MAXSERV] = "5683";
int opt;
int mcast_per_resource = 0;
coap_log_t log_level = LOG_WARNING;
coap_log_t log_level = COAP_LOG_WARN;
unsigned wait_ms;
coap_time_t t_last = 0;
int coap_fd;
Expand Down Expand Up @@ -715,7 +715,7 @@ main(int argc, char **argv) {
result = select (nfds, &readfds, NULL, NULL, &tv);
if (result == -1) {
if (errno != EAGAIN) {
coap_log(LOG_DEBUG, "select: %s (%d)\n", coap_socket_strerror(),
coap_log_debug("select: %s (%d)\n", coap_socket_strerror(),
errno);
break;
}
Expand Down

0 comments on commit fc78eda

Please sign in to comment.