Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
nettle
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Brian Smith
nettle
Commits
dde1dbd4
Commit
dde1dbd4
authored
12 years ago
by
Tim Ruehsen
Committed by
Niels Möller
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Deleted useless allocations.
parent
74538386
No related branches found
No related tags found
Loading
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ChangeLog
+5
-0
5 additions, 0 deletions
ChangeLog
examples/base16enc.c
+0
-14
0 additions, 14 deletions
examples/base16enc.c
with
5 additions
and
14 deletions
ChangeLog
+
5
−
0
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>
2012-09-07 Niels Möller <nisse@lysator.liu.se>
* examples/nettle-benchmark.c (die): Add NORETURN attribute. Patch
* examples/nettle-benchmark.c (die): Add NORETURN attribute. Patch
...
...
This diff is collapsed.
Click to expand it.
examples/base16enc.c
+
0
−
14
View file @
dde1dbd4
...
@@ -48,20 +48,6 @@ int
...
@@ -48,20 +48,6 @@ int
main
(
int
argc
UNUSED
,
char
**
argv
UNUSED
)
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
#ifdef WIN32
_setmode
(
0
,
O_BINARY
);
_setmode
(
0
,
O_BINARY
);
#endif
#endif
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment