command.c: Avoid declaration after statement.
authorAndre Noll <maan@systemlinux.org>
Mon, 22 Jul 2013 23:22:33 +0000 (01:22 +0200)
committerAndre Noll <maan@systemlinux.org>
Wed, 4 Sep 2013 22:23:13 +0000 (22:23 +0000)
Fixes

command.c:224:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]

command.c

index 33cc4b2f647fce152397471bd7c7441fc30e6ff3..a50b38449e778f5bae170ed38225afd5243efe46 100644 (file)
--- a/command.c
+++ b/command.c
@@ -220,8 +220,8 @@ int send_sb(struct stream_cipher_context *scc, void *buf, size_t numbytes,
        int ret;
        struct sb_context *sbc;
        struct iovec iov[2];
        int ret;
        struct sb_context *sbc;
        struct iovec iov[2];
-       struct sb_buffer sbb = SBB_INIT(band, buf, numbytes);
        sb_transformation trafo = band < SBD_PROCEED? NULL : sc_trafo;
        sb_transformation trafo = band < SBD_PROCEED? NULL : sc_trafo;
+       struct sb_buffer sbb = SBB_INIT(band, buf, numbytes);
 
        sbc = sb_new_send(&sbb, dont_free, trafo, scc->send);
        do {
 
        sbc = sb_new_send(&sbb, dont_free, trafo, scc->send);
        do {