}
#if (NGX_WIN32)
-
- if ((unsigned) err >= 0x80000000) {
- p = ngx_snprintf(p, last - p, " (%Xd: ", err);
-
- } else {
- p = ngx_snprintf(p, last - p, " (%d: ", err);
- }
-
+ p = ngx_snprintf(p, last - p, ((unsigned) err < 0x80000000)
+ ? " (%d: " : " (%Xd: ", err);
#else
-
p = ngx_snprintf(p, last - p, " (%d: ", err);
-
#endif
p = ngx_strerror_r(err, p, last - p);
*p++ = '.';
}
- if ((unsigned) err >= 0x80000000) {
- p = ngx_snprintf(p, last - p, " (%Xd: ", err);
-
- } else {
- p = ngx_snprintf(p, last - p, " (%d: ", err);
- }
-
+ p = ngx_snprintf(p, last - p, ((unsigned) err < 0x80000000)
+ ? " (%d: " : " (%Xd: ", err);
p = ngx_strerror_r(err, p, last - p);
if (p < last) {