mirror of
https://github.com/nginx/nginx.git
synced 2025-08-04 13:36:14 +08:00
merge r2920, r2934, r3116, r3119:
style fixes
This commit is contained in:
parent
f7f963d779
commit
f10b4e07a5
@ -30,12 +30,15 @@ ngx_cpystrn(u_char *dst, u_char *src, size_t n)
|
|||||||
return dst;
|
return dst;
|
||||||
}
|
}
|
||||||
|
|
||||||
for ( /* void */ ; --n; dst++, src++) {
|
while (--n) {
|
||||||
*dst = *src;
|
*dst = *src;
|
||||||
|
|
||||||
if (*dst == '\0') {
|
if (*dst == '\0') {
|
||||||
return dst;
|
return dst;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dst++;
|
||||||
|
src++;
|
||||||
}
|
}
|
||||||
|
|
||||||
*dst = '\0';
|
*dst = '\0';
|
||||||
|
Loading…
Reference in New Issue
Block a user