diff options
Diffstat (limited to 'miscutils')
-rw-r--r-- | miscutils/bbconfig.c | 2 | ||||
-rw-r--r-- | miscutils/chat.c | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/miscutils/bbconfig.c b/miscutils/bbconfig.c index ee566788b..f3aef42e3 100644 --- a/miscutils/bbconfig.c +++ b/miscutils/bbconfig.c @@ -5,7 +5,7 @@ #include "bbconfigopts.h" int bbconfig_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; -int bbconfig_main(int argc, char **argv) +int bbconfig_main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) { printf(bbconfig_config); return 0; diff --git a/miscutils/chat.c b/miscutils/chat.c index 50c5ad976..64d4ba4fd 100644 --- a/miscutils/chat.c +++ b/miscutils/chat.c @@ -233,7 +233,8 @@ int chat_main(int argc ATTRIBUTE_UNUSED, char **argv) //----------------------- // do expect //----------------------- - size_t expect_len, buf_len = 0; + int expect_len; + size_t buf_len = 0; size_t max_len = max_abort_len; struct pollfd pfd; @@ -315,7 +316,7 @@ int chat_main(int argc ATTRIBUTE_UNUSED, char **argv) exitcode = ERR_OK; // expected reply received? -> goto next command - delta = buf_len-expect_len; + delta = buf_len - expect_len; if (delta >= 0 && !memcmp(buf+delta, expect, expect_len)) goto expect_done; #undef buf |