Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dmitry Baryshkov
nettle
Commits
76da9500
Commit
76da9500
authored
Sep 03, 2016
by
Niels Möller
Browse files
Fix pointer signedness warning in nettle-lfib-stream.
parent
c9443aa7
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
76da9500
...
...
@@ -25,6 +25,8 @@
argument to test_armor.
* testsuite/base64-test.c (test_main): Likewise.
* tools/nettle-lfib-stream.c (main): Fix pointer signedness warning.
2016-08-29 Niels Möller <nisse@lysator.liu.se>
* sexp-format.c (strlen_u8): New helper function.
...
...
tools/nettle-lfib-stream.c
View file @
76da9500
...
...
@@ -80,10 +80,10 @@ main(int argc, char **argv)
for
(;;)
{
char
buffer
[
BUFSIZE
];
knuth_lfib_random
(
&
ctx
,
BUFSIZE
,
buffer
);
uint8_t
buffer
[
BUFSIZE
];
knuth_lfib_random
(
&
ctx
,
sizeof
(
buffer
)
,
buffer
);
if
(
fwrite
(
buffer
,
1
,
BUFSIZE
,
stdout
)
<
BUFSIZE
if
(
fwrite
(
buffer
,
1
,
sizeof
(
buffer
),
stdout
)
<
sizeof
(
buffer
)
||
fflush
(
stdout
)
<
0
)
return
EXIT_FAILURE
;
}
...
...
Write
Preview
Supports
Markdown
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