From 024bbb0592536a3309aa30dd2a5b792d1c3a5984 Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Sun, 3 Jan 2021 10:01:23 +0100 Subject: [PATCH] Updated libs --- src/libosmocc/endpoint.c | 4 ++-- src/libosmocc/message.c | 6 +++--- src/libosmocc/message.h | 2 +- src/libosmocc/sdp.c | 2 +- src/libosmocc/session.c | 2 +- src/libosmocc/socket.c | 2 +- src/libosmocc/socket.h | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/libosmocc/endpoint.c b/src/libosmocc/endpoint.c index 83dd475..317efdb 100644 --- a/src/libosmocc/endpoint.c +++ b/src/libosmocc/endpoint.c @@ -960,7 +960,7 @@ static int osmo_cc_handle_endpoint(osmo_cc_endpoint_t *ep) } /* main handler - * note that it must be called in a loop (with ohter handlers) until no work was done + * note that it must be called in a loop (with other handlers) until no work was done */ int osmo_cc_handle(void) { @@ -1071,7 +1071,7 @@ static void osmo_cc_help_address(void) printf("remote []:\n\n"); printf("These options can be used to define local and remote IP and port for the socket\n"); - printf("interface. Note that IPv6 adresses must be enclosed by '[' and ']'.\n\n"); + printf("interface. Note that IPv6 addresses must be enclosed by '[' and ']'.\n\n"); printf("If no local address was given, the IPv4 loopback IP and port %d is used. If\n", OSMO_CC_DEFAULT_PORT); printf("this port is already in use, the first free higher port is used.\n\n"); diff --git a/src/libosmocc/message.c b/src/libosmocc/message.c index 126f684..0eb25ac 100644 --- a/src/libosmocc/message.c +++ b/src/libosmocc/message.c @@ -109,7 +109,7 @@ osmo_cc_msg_t *osmo_cc_new_msg(uint8_t msg_type) PDEBUG(DCC, DEBUG_ERROR, "No memory\n"); abort(); } - /* set message type and zero lentgh */ + /* set message type and zero length */ msg->type = msg_type; msg->length_networkorder = htons(0); @@ -831,7 +831,7 @@ int osmo_cc_get_ie_sdp(osmo_cc_msg_t *msg, int ie_repeat, char *sdp, size_t sdp_ return rc; } -/* helper to encode socket addresss */ +/* helper to encode socket address */ void osmo_cc_add_ie_socket_address(osmo_cc_msg_t *msg, const char *address) { struct osmo_cc_ie_socket_address *ie_socket_address; @@ -840,7 +840,7 @@ void osmo_cc_add_ie_socket_address(osmo_cc_msg_t *msg, const char *address) memcpy(ie_socket_address->address, address, strlen(address)); } -/* helper to decode socket addresss */ +/* helper to decode socket address */ int osmo_cc_get_ie_socket_address(osmo_cc_msg_t *msg, int ie_repeat, char *address, size_t address_size) { struct osmo_cc_ie_socket_address *ie_socket_address; diff --git a/src/libosmocc/message.h b/src/libosmocc/message.h index 9dee2c9..7821988 100644 --- a/src/libosmocc/message.h +++ b/src/libosmocc/message.h @@ -223,7 +223,7 @@ enum osmo_cc_ie_type { #define OSMO_CC_DTMF_MODE_ON 1 /* start tone */ #define OSMO_CC_DTMF_MODE_DIGITS 2 /* play tone(s) with duration and pauses */ -#define OSMO_CC_SOCKET_CAUSE_VERSION_MISMATCH 1 /* version missmatch */ +#define OSMO_CC_SOCKET_CAUSE_VERSION_MISMATCH 1 /* version mismatch */ #define OSMO_CC_SOCKET_CAUSE_FAILED 2 /* connection failed */ #define OSMO_CC_SOCKET_CAUSE_BROKEN_PIPE 3 /* connected socket failed */ #define OSMO_CC_SOCKET_CAUSE_TIMEOUT 4 /* keepalive packets timeout */ diff --git a/src/libosmocc/sdp.c b/src/libosmocc/sdp.c index 3fba8af..5afd3d6 100644 --- a/src/libosmocc/sdp.c +++ b/src/libosmocc/sdp.c @@ -141,7 +141,7 @@ char *osmo_cc_session_gensdp(osmo_cc_session_t *session) return sdp; } -/* seperate a word from string that is delimited with one or more space characters */ +/* separate a word from string that is delimited with one or more space characters */ static char *wordsep(char **text_p) { char *text = *text_p; diff --git a/src/libosmocc/session.c b/src/libosmocc/session.c index 72e805a..9751845 100644 --- a/src/libosmocc/session.c +++ b/src/libosmocc/session.c @@ -470,7 +470,7 @@ static int osmo_cc_session_negotiate(osmo_cc_session_t *session_local, struct os PDEBUG(DCC, DEBUG_DEBUG, "Negotiating session.\n"); - /* copy remote session infromation */ + /* copy remote session information */ session_local->origin_remote.username = strdup(session_remote->origin_remote.username); session_local->origin_remote.sess_id = strdup(session_remote->origin_remote.sess_id); session_local->origin_remote.sess_version = strdup(session_remote->origin_remote.sess_version); diff --git a/src/libosmocc/socket.c b/src/libosmocc/socket.c index d4eb12e..d25e1f1 100644 --- a/src/libosmocc/socket.c +++ b/src/libosmocc/socket.c @@ -442,7 +442,7 @@ static int transmit_conn(osmo_cc_conn_t *conn) /* start TX keepalive timeer, if not already * because we stop at every message above, we actually restart the timer here. - * only if there is no message for the amout of time, the timer fires. + * only if there is no message for the amount of time, the timer fires. */ if (!timer_running(&conn->tx_keepalive_timer)) timer_start(&conn->tx_keepalive_timer, OSMO_CC_SOCKET_TX_KEEPALIVE); diff --git a/src/libosmocc/socket.h b/src/libosmocc/socket.h index a0f96ed..bcd8b7c 100644 --- a/src/libosmocc/socket.h +++ b/src/libosmocc/socket.h @@ -2,7 +2,7 @@ #define OSMO_CC_SOCKET_H #define OSMO_CC_DEFAULT_PORT 4200 -#define OSMO_CC_DEFAULT_PORT_MAX 4299 +#define OSMO_CC_DEFAULT_PORT_MAX 4219 #define OSMO_CC_SOCKET_TX_KEEPALIVE 10.0 #define OSMO_CC_SOCKET_RX_KEEPALIVE 20.0