diff options
author | kent@mysql.com <> | 2006-04-14 14:59:21 +0200 |
---|---|---|
committer | kent@mysql.com <> | 2006-04-14 14:59:21 +0200 |
commit | 34842dd2955de6f1e88ccfa97eba3787f669ee98 (patch) | |
tree | e30ca945b01a20fdbeb53ac83a41639c111d0c7f /unittest/mysys | |
parent | db9cabea7d638109798701a3bfdb316328a45a05 (diff) | |
download | mariadb-git-34842dd2955de6f1e88ccfa97eba3787f669ee98.tar.gz |
base64.t.c:
Moved declarations to beginning of block
Diffstat (limited to 'unittest/mysys')
-rw-r--r-- | unittest/mysys/base64.t.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/unittest/mysys/base64.t.c b/unittest/mysys/base64.t.c index ecec5a4b560..1b4f2eb2356 100644 --- a/unittest/mysys/base64.t.c +++ b/unittest/mysys/base64.t.c @@ -23,7 +23,7 @@ int main(void) { - int i; + int i, cmp; size_t j, k, l, dst_len, needed_length; for (i= 0; i < 500; i++) @@ -57,12 +57,12 @@ main(void) dst_len= base64_decode(str, strlen(str), dst); ok(dst_len == src_len, "Comparing lengths"); - int cmp= memcmp(src, dst, src_len); + cmp= memcmp(src, dst, src_len); ok(cmp == 0, "Comparing encode-decode result"); if (cmp != 0) { - diag(" --------- src --------- --------- dst ---------"); char buf[80]; + diag(" --------- src --------- --------- dst ---------"); for (k= 0; k<src_len; k+=8) { sprintf(buf, "%.4x ", (uint) k); |