[sr-dev] git:master:68d1bdef: core: spelling fix in comments (usefull -> useful)

Henning Westerholt hw at skalatan.de
Sun Sep 29 23:16:17 CEST 2019


Module: kamailio
Branch: master
Commit: 68d1bdefb373798c740130b50602cdde2e70f876
URL: https://github.com/kamailio/kamailio/commit/68d1bdefb373798c740130b50602cdde2e70f876

Author: Henning Westerholt <hw at skalatan.de>
Committer: Henning Westerholt <hw at skalatan.de>
Date: 2019-09-29T23:13:41+02:00

core: spelling fix in comments (usefull -> useful)

---

Modified: src/Makefile.rules
Modified: src/core/dset.h
Modified: src/core/tcp_main.c
Modified: src/core/timer.c

---

Diff:  https://github.com/kamailio/kamailio/commit/68d1bdefb373798c740130b50602cdde2e70f876.diff
Patch: https://github.com/kamailio/kamailio/commit/68d1bdefb373798c740130b50602cdde2e70f876.patch

---

diff --git a/src/Makefile.rules b/src/Makefile.rules
index 10d04a1c33..57c955437f 100644
--- a/src/Makefile.rules
+++ b/src/Makefile.rules
@@ -207,7 +207,7 @@ all: $(NAME) every-module
 static: $(objs)
 
 # clean only the current directory (no modules or utils)
-# (it's usefull to have it separated from clean for speeding up make proper)
+# (it's useful to have it separated from clean for speeding up make proper)
 .PHONY: local-clean
 local-clean:
 	- at rm -f $(objs) $(NAME) $(objs:.o=.il) *.a librpath.lst 2>/dev/null
diff --git a/src/core/dset.h b/src/core/dset.h
index 9a640da704..ccb0f669c9 100644
--- a/src/core/dset.h
+++ b/src/core/dset.h
@@ -223,7 +223,7 @@ inline static int get_request_uri(struct sip_msg* _m, str* _u)
 #define ruri_mark_consumed()  (ruri_is_new = 0)
 
 /** returns whether or not ruri should be used when forking.
-  * (usefull for serial forking)
+  * (useful for serial forking)
   * @return 0 if already marked as consumed, 1 if not.
  */
 #define ruri_get_forking_state() (ruri_is_new)
diff --git a/src/core/tcp_main.c b/src/core/tcp_main.c
index e86fc872a8..61a692af85 100644
--- a/src/core/tcp_main.c
+++ b/src/core/tcp_main.c
@@ -3553,7 +3553,7 @@ int _tcpconn_write_nb(int fd, struct tcp_connection* c,
 /* handles io from a tcp child process
  * params: tcp_c - pointer in the tcp_children array, to the entry for
  *                 which an io event was detected 
- *         fd_i  - fd index in the fd_array (usefull for optimizing
+ *         fd_i  - fd index in the fd_array (useful for optimizing
  *                 io_watch_deletes)
  * returns:  handle_* return convention: -1 on error, 0 on EAGAIN (no more
  *           io events queued), >0 on success. success/error refer only to
@@ -3776,7 +3776,7 @@ inline static int handle_tcp_child(struct tcp_child* tcp_c, int fd_i)
  * 
  * params: p     - pointer in the ser processes array (pt[]), to the entry for
  *                 which an io event was detected
- *         fd_i  - fd index in the fd_array (usefull for optimizing
+ *         fd_i  - fd index in the fd_array (useful for optimizing
  *                 io_watch_deletes)
  * returns:  handle_* return convention:
  *          -1 on error reading from the fd,
diff --git a/src/core/timer.c b/src/core/timer.c
index 8f6e305b24..1bcd036fda 100644
--- a/src/core/timer.c
+++ b/src/core/timer.c
@@ -765,7 +765,7 @@ return ret;
 
 
 
-/* marks a timer as "to be deleted when the handler ends", usefull when
+/* marks a timer as "to be deleted when the handler ends", useful when
  * the timer handler knows it won't prolong the timer anymore (it will
  * return 0) and will do some time consuming work. Calling this function
  * will cause simultaneous timer_dels to return immediately (they won't




More information about the sr-dev mailing list