瀏覽代碼

core: Fix typos

Bastian Triller 2 月之前
父節點
當前提交
6b92933080
共有 3 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      src/core/tcp_conn.h
  2. 1 1
      src/core/timer.h
  3. 1 1
      src/core/timer_ticks.h

+ 1 - 1
src/core/tcp_conn.h

@@ -40,7 +40,7 @@
 
 #define TCP_CHILD_TIMEOUT \
 	5							   /* after 5 seconds, the child "returns"
-							 * the connection to the tcp maing process */
+							 * the connection to the tcp main process */
 #define TCP_MAIN_SELECT_TIMEOUT 5  /* how often "tcp main" checks for timeout*/
 #define TCP_CHILD_SELECT_TIMEOUT 2 /* the same as above but for children */
 

+ 1 - 1
src/core/timer.h

@@ -53,7 +53,7 @@
 #ifdef USE_SLOW_TIMER
 #include <sys/types.h>
 
-typedef unsigned int slow_idx_t; /* type fot the slow index */
+typedef unsigned int slow_idx_t; /* type for the slow index */
 extern pid_t slow_timer_pid;
 #endif
 

+ 1 - 1
src/core/timer_ticks.h

@@ -43,7 +43,7 @@
 #define S_TO_TICKS(s) ((s)*TIMER_TICKS_HZ)
 
 
-/** @brief how many s pe per t ticks, integer value */
+/** @brief how many seconds per ticks, integer value */
 #define TICKS_TO_S(t) ((t) / TIMER_TICKS_HZ)
 
 /** @brief how many ms per t ticks, integer value */