Browse Source

core: Fix typos

Bastian Triller 2 months ago
parent
commit
6b92933080
3 changed files with 3 additions and 3 deletions
  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 \
 #define TCP_CHILD_TIMEOUT \
 	5							   /* after 5 seconds, the child "returns"
 	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_MAIN_SELECT_TIMEOUT 5  /* how often "tcp main" checks for timeout*/
 #define TCP_CHILD_SELECT_TIMEOUT 2 /* the same as above but for children */
 #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
 #ifdef USE_SLOW_TIMER
 #include <sys/types.h>
 #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;
 extern pid_t slow_timer_pid;
 #endif
 #endif
 
 

+ 1 - 1
src/core/timer_ticks.h

@@ -43,7 +43,7 @@
 #define S_TO_TICKS(s) ((s)*TIMER_TICKS_HZ)
 #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)
 #define TICKS_TO_S(t) ((t) / TIMER_TICKS_HZ)
 
 
 /** @brief how many ms per t ticks, integer value */
 /** @brief how many ms per t ticks, integer value */