Skip to content

Commit e91ba42

Browse files
committed
src BUGFIX typos
1 parent 3b7d42e commit e91ba42

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/io.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ nc_read(struct nc_session *session, char *buf, size_t count, uint32_t inact_time
196196
session->term_reason = NC_SESSION_TERM_OTHER;
197197
return -1;
198198
default:
199-
ERR(session, "Unknown SSL error occured (err code %d).", e);
199+
ERR(session, "Unknown SSL error occurred (err code %d).", e);
200200
session->status = NC_STATUS_INVALID;
201201
session->term_reason = NC_SESSION_TERM_OTHER;
202202
return -1;
@@ -737,7 +737,7 @@ nc_write(struct nc_session *session, const void *buf, size_t count)
737737
free(reasons);
738738
return -1;
739739
default:
740-
ERR(session, "Unknown SSL error occured (err code %d).", e);
740+
ERR(session, "Unknown SSL error occurred (err code %d).", e);
741741
return -1;
742742
}
743743
}

src/session_client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1827,7 +1827,7 @@ get_msg_type(struct nc_session *session, struct ly_in *msg)
18271827
* @param[out] message If receiving a message succeeded this is the message, NULL otherwise.
18281828
* @return NC_MSG_REPLY If a rpc-reply was received;
18291829
* @return NC_MSG_NOTIF If a notification was received;
1830-
* @return NC_MSG_ERROR If any error occured;
1830+
* @return NC_MSG_ERROR If any error occurred;
18311831
* @return NC_MSG_WOULDBLOCK If the timeout was reached.
18321832
*/
18331833
static NC_MSG_TYPE

src/session_server.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,7 +1034,7 @@ nc_ps_lock(struct nc_pollsession *ps, uint8_t *id, const char *func)
10341034

10351035
/* add ourselves into the queue */
10361036
nc_ps_queue_add_id(ps, id);
1037-
DBL(NULL, "PS 0x%p TID %lu queue: added %u, head %u, lenght %u", ps, (long unsigned int)pthread_self(), *id,
1037+
DBL(NULL, "PS 0x%p TID %lu queue: added %u, head %u, length %u", ps, (long unsigned int)pthread_self(), *id,
10381038
ps->queue[ps->queue_begin], ps->queue_len);
10391039

10401040
/* is it our turn? */
@@ -1095,7 +1095,7 @@ nc_ps_unlock(struct nc_pollsession *ps, uint8_t id, const char *func)
10951095

10961096
/* remove ourselves from the queue */
10971097
nc_ps_queue_remove_id(ps, id);
1098-
DBL(NULL, "PS 0x%p TID %lu queue: removed %u, head %u, lenght %u", ps, (long unsigned int)pthread_self(), id,
1098+
DBL(NULL, "PS 0x%p TID %lu queue: removed %u, head %u, length %u", ps, (long unsigned int)pthread_self(), id,
10991099
ps->queue[ps->queue_begin], ps->queue_len);
11001100

11011101
/* broadcast to all other threads that the queue moved */

0 commit comments

Comments
 (0)