summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2021-01-03 10:12:44 +0100
committerAndreas Eversberg <jolly@eversberg.eu>2021-01-03 10:12:44 +0100
commit379c1aa20a12b51f72d21a1db8d353ab4648d7cf (patch)
treef5a90e31947177461c5097480540598df30ff8e9
parent8c4e8c4ec320fd6bb80d2601a17fb05fd76acb97 (diff)
Updated libs
-rw-r--r--src/libfilter/fir_filter.c2
-rw-r--r--src/libosmocc/endpoint.c4
-rw-r--r--src/libosmocc/message.c6
-rw-r--r--src/libosmocc/message.h2
-rw-r--r--src/libosmocc/sdp.c2
-rw-r--r--src/libosmocc/session.c2
-rw-r--r--src/libosmocc/socket.c2
-rw-r--r--src/libosmocc/socket.h2
8 files changed, 11 insertions, 11 deletions
diff --git a/src/libfilter/fir_filter.c b/src/libfilter/fir_filter.c
index 5df4f40..c86ac5b 100644
--- a/src/libfilter/fir_filter.c
+++ b/src/libfilter/fir_filter.c
@@ -181,7 +181,7 @@ void fir_process(fir_filter_t *fir, sample_t *samples, int num)
/* convolve samples */
y = 0;
for (j = 0; j < fir->ntaps; j++) {
- /* convolve sample from ring buffer, starting with oldes */
+ /* convolve sample from ring buffer, starting with oldest */
y += fir->buffer[fir->buffer_pos] * fir->taps[j];
if (++fir->buffer_pos == fir->ntaps)
fir->buffer_pos = 0;
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 [<IPv6 address>]:<port>\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