Skip to content

Commit

Permalink
include: fix some typos (#825)
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredh authored May 30, 2023
1 parent 6403f77 commit 952e23a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions include/re_atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -1077,7 +1077,7 @@ static __forceinline unsigned __int64 _re_atomic_fetch_and(
/**
* @def re_atomic_rlx_sub(_a, _v)
*
* Replace value from an atomic object with substraction and relaxed order
* Replace value from an atomic object with subtraction and relaxed order
*
* @param _a pointer to the atomic object
* @param _v value to subtract
Expand Down Expand Up @@ -1129,7 +1129,7 @@ static __forceinline unsigned __int64 _re_atomic_fetch_and(
/**
* @def re_atomic_acq_sub(_a, _v)
*
* Replace value from an atomic object with substraction and acquire-release
* Replace value from an atomic object with subtraction and acquire-release
* order
*
* @param _a pointer to the atomic object
Expand Down Expand Up @@ -1183,11 +1183,11 @@ static __forceinline unsigned __int64 _re_atomic_fetch_and(
/**
* @def re_atomic_seq_sub(_a, _v)
*
* Replace value from an atomic object with substraction and
* Replace value from an atomic object with subtraction and
* sequentially-consistent order
*
* @param _a pointer to the atomic object
* @param _v value to substract
* @param _v value to subtract
*
* @return value held previously by the atomic variable
*/
Expand Down
2 changes: 1 addition & 1 deletion include/re_dns.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ struct hash;
* @param err 0 if success, otherwise errorcode
* @param hdr DNS Header
* @param ansl List of Answer records
* @param authl List of Authoritive records
* @param authl List of Authoritative records
* @param addl List of Additional records
* @param arg Handler argument
*/
Expand Down
2 changes: 1 addition & 1 deletion include/re_fmt.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ typedef int(re_vprintf_h)(const char *p, size_t size, void *arg);
/** Defines a print backend */
struct re_printf {
re_vprintf_h *vph; /**< Print handler */
void *arg; /**< Handler agument */
void *arg; /**< Handler argument */
};

/**
Expand Down
2 changes: 1 addition & 1 deletion include/re_thread.h
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ int mtx_lock(mtx_t *mtx);
*
* @param mtx Pointer to the mutex
*
* @return thrd_success on success, thrd_busy if alread locked,
* @return thrd_success on success, thrd_busy if already locked,
* otherwise thrd_error
*/
int mtx_trylock(mtx_t *mtx);
Expand Down

0 comments on commit 952e23a

Please sign in to comment.