Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
34842dd2
Commit
34842dd2
authored
Apr 14, 2006
by
kent@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
base64.t.c:
Moved declarations to beginning of block
parent
db9cabea
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
unittest/mysys/base64.t.c
unittest/mysys/base64.t.c
+3
-3
No files found.
unittest/mysys/base64.t.c
View file @
34842dd2
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment