[PATCH 1 of 3] Style: use ngx_strlen() instead of strlen()

cubicdaiya at gmail.com cubicdaiya at gmail.com
Wed Jul 9 14:31:08 UTC 2014


# HG changeset patch
# User Tatsuhiko Kubo <cubicdaiya at gmail.com>
# Date 1404915640 -32400
#      Wed Jul 09 23:20:40 2014 +0900
# Node ID 09e734739e462555dda00fb4cd420bdb07853cb7
# Parent  b522d5b137fdf64163ebed3e3da6b11a1b1c6561
Style: use ngx_strlen() instead of strlen().

diff -r b522d5b137fd -r 09e734739e46 src/core/ngx_log.h
--- a/src/core/ngx_log.h	Tue Jul 08 02:17:44 2014 -0700
+++ b/src/core/ngx_log.h	Wed Jul 09 23:20:40 2014 +0900
@@ -248,7 +248,7 @@
 static ngx_inline void
 ngx_write_stderr(char *text)
 {
-    (void) ngx_write_fd(ngx_stderr, text, strlen(text));
+    (void) ngx_write_fd(ngx_stderr, text, ngx_strlen(text));
 }
 
 



More information about the nginx-devel mailing list