diff options
author | Valentin Bartenev <vbart@nginx.com> | 2017-08-16 15:43:02 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2017-08-16 15:43:02 +0300 |
commit | 2dd8048bf9d80d045f3df8f0930c3325bf8a14f9 (patch) | |
tree | 4148568e2c06925b1c29d3f57e854455fd64bace /src/nxt_string.c | |
parent | 23d38a57942d2b0b000ea45dea10ba3004d5e23f (diff) | |
download | unit-2dd8048bf9d80d045f3df8f0930c3325bf8a14f9.tar.gz unit-2dd8048bf9d80d045f3df8f0930c3325bf8a14f9.tar.bz2 |
Renamed nxt_str_copy() to nxt_str_cstrz().
Diffstat (limited to 'src/nxt_string.c')
-rw-r--r-- | src/nxt_string.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nxt_string.c b/src/nxt_string.c index fb1cafd6..90e5734d 100644 --- a/src/nxt_string.c +++ b/src/nxt_string.c @@ -61,7 +61,7 @@ nxt_str_dup(nxt_mp_t *mp, nxt_str_t *dst, const nxt_str_t *src) /* - * nxt_str_copy() creates a C style zero-terminated copy of a source + * nxt_str_cstrz() creates a C style zero-terminated copy of a source * nxt_str_t. The function is intended to create strings suitable * for libc and kernel interfaces so result is pointer to char instead * of u_char to minimize casts. The copy is aligned to 2 bytes thus @@ -69,7 +69,7 @@ nxt_str_dup(nxt_mp_t *mp, nxt_str_t *dst, const nxt_str_t *src) */ char * -nxt_str_copy(nxt_mp_t *mp, const nxt_str_t *src) +nxt_str_cstrz(nxt_mp_t *mp, const nxt_str_t *src) { char *p, *dst; |