localized a local variable into a loop in PUT_OOCH and PUT_OOCS in logfmtv
This commit is contained in:
parent
4aa9a711ad
commit
ebb90dc133
@ -72,8 +72,8 @@
|
|||||||
#undef PUT_OOCS
|
#undef PUT_OOCS
|
||||||
|
|
||||||
#define PUT_OOCH(c,n) do { \
|
#define PUT_OOCH(c,n) do { \
|
||||||
int xx; \
|
|
||||||
if (n > 0) { \
|
if (n > 0) { \
|
||||||
|
int xx; \
|
||||||
if ((xx = data->putch (moo, data->mask, c, n)) <= -1) goto oops; \
|
if ((xx = data->putch (moo, data->mask, c, n)) <= -1) goto oops; \
|
||||||
if (xx == 0) goto done; \
|
if (xx == 0) goto done; \
|
||||||
data->count += n; \
|
data->count += n; \
|
||||||
@ -81,8 +81,8 @@
|
|||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#define PUT_OOCS(ptr,len) do { \
|
#define PUT_OOCS(ptr,len) do { \
|
||||||
int xx; \
|
|
||||||
if (len > 0) { \
|
if (len > 0) { \
|
||||||
|
int xx; \
|
||||||
if ((xx = data->putcs (moo, data->mask, ptr, len)) <= -1) goto oops; \
|
if ((xx = data->putcs (moo, data->mask, ptr, len)) <= -1) goto oops; \
|
||||||
if (xx == 0) goto done; \
|
if (xx == 0) goto done; \
|
||||||
data->count += len; \
|
data->count += len; \
|
||||||
|
Loading…
Reference in New Issue
Block a user