瀏覽代碼

core: spelling fix in comment and log message

Henning Westerholt 1 年之前
父節點
當前提交
db176a4918
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/core/switch.c
  2. 1 1
      src/core/ut.h

+ 1 - 1
src/core/switch.c

@@ -203,7 +203,7 @@ int fix_switch(struct action *t)
 				return E_BUG;
 			}
 			if(rval_expr_eval_long(0, 0, &c->label.match_int, c->ct_rve) < 0) {
-				LM_ERR("case expression (%d,%d) has non-interger type\n",
+				LM_ERR("case expression (%d,%d) has non-integer type\n",
 						c->ct_rve->fpos.s_line, c->ct_rve->fpos.s_col);
 				return E_BUG;
 			}

+ 1 - 1
src/core/ut.h

@@ -315,7 +315,7 @@ static inline char *int2strbuf(unsigned long l, char *r, int r_size, int *len)
 }
 
 extern char ut_buf_int2str[INT2STR_MAX_LEN];
-/** interger(long) to string conversion.
+/** integer(long) to string conversion.
  * This version uses a static buffer (shared with sint2str()).
  * WARNING: other function calls might overwrite the static buffer, so
  * either always save the result immediately or use int2strbuf(...).