Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nettle
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
5
Merge Requests
5
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Nettle
nettle
Commits
dde1dbd4
Commit
dde1dbd4
authored
Sep 10, 2012
by
Tim Ruehsen
Committed by
Niels Möller
Sep 10, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deleted useless allocations.
parent
74538386
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
14 deletions
+5
-14
ChangeLog
ChangeLog
+5
-0
examples/base16enc.c
examples/base16enc.c
+0
-14
No files found.
ChangeLog
View file @
dde1dbd4
2012-09-10 Niels Möller <nisse@lysator.liu.se>
* examples/base16enc.c (main): Deleted useless allocations. Patch
from Tim Rühsen.
2012-09-07 Niels Möller <nisse@lysator.liu.se>
* examples/nettle-benchmark.c (die): Add NORETURN attribute. Patch
...
...
examples/base16enc.c
View file @
dde1dbd4
...
...
@@ -48,20 +48,6 @@ int
main
(
int
argc
UNUSED
,
char
**
argv
UNUSED
)
{
/* "buffer" will hold the bytes from disk: */
uint8_t
*
buffer
=
(
uint8_t
*
)
malloc
(
CHUNK_SIZE
*
sizeof
(
uint8_t
));
if
(
buffer
==
NULL
)
{
fprintf
(
stderr
,
"Cannot allocate read buffer.
\n
"
);
return
EXIT_FAILURE
;
}
/* "result" will hold bytes before output: */
uint8_t
*
result
=
(
uint8_t
*
)
malloc
(
ENCODED_SIZE
*
sizeof
(
uint8_t
));
if
(
result
==
NULL
)
{
fprintf
(
stderr
,
"Cannot allocate write buffer.
\n
"
);
return
EXIT_FAILURE
;
}
#ifdef WIN32
_setmode
(
0
,
O_BINARY
);
#endif
...
...
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