echo: fix !ENABLE_FEATURE_FANCY_ECHO build

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2021-04-14 18:55:30 +02:00
parent fe2d8065e3
commit 7c813fbabf

View File

@ -87,6 +87,7 @@ int echo_main(int argc UNUSED_PARAM, char **argv)
char *out; char *out;
char *buffer; char *buffer;
unsigned buflen; unsigned buflen;
int err;
#if !ENABLE_FEATURE_FANCY_ECHO #if !ENABLE_FEATURE_FANCY_ECHO
enum { enum {
eflag = 0, /* 0 -- disable escape sequences */ eflag = 0, /* 0 -- disable escape sequences */
@ -97,7 +98,6 @@ int echo_main(int argc UNUSED_PARAM, char **argv)
#else #else
char nflag = 1; char nflag = 1;
char eflag = 0; char eflag = 0;
int err;
while ((arg = *++argv) != NULL) { while ((arg = *++argv) != NULL) {
char n, e; char n, e;