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
L
little-ed448-Goldilocks
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
OTRv4
little-ed448-Goldilocks
Commits
3dfea889
Unverified
Commit
3dfea889
authored
Feb 06, 2018
by
Sofia Celi
⛸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Michael Hamburg commit: avoid no-prototype warning in ristretto.cxx
parent
ec283de5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
test/ristretto.cxx
test/ristretto.cxx
+4
-4
No files found.
test/ristretto.cxx
View file @
3dfea889
...
...
@@ -13,14 +13,14 @@
#include <stdio.h>
using
namespace
decaf
;
inline
int
hexi
(
char
c
)
{
static
inline
int
hexi
(
char
c
)
{
if
(
c
>=
'0'
&&
c
<=
'9'
)
return
c
-
'0'
;
if
(
c
>=
'a'
&&
c
<=
'f'
)
return
c
-
'a'
+
0xa
;
if
(
c
>=
'A'
&&
c
<=
'F'
)
return
c
-
'A'
+
0xa
;
return
-
1
;
}
int
parsehex
(
uint8_t
*
out
,
size_t
sizeof_out
,
const
char
*
hex
)
{
static
int
parsehex
(
uint8_t
*
out
,
size_t
sizeof_out
,
const
char
*
hex
)
{
size_t
l
=
strlen
(
hex
);
if
(
l
%
2
!=
0
)
{
fprintf
(
stderr
,
"String should be hex, but has odd length
\n
: %s
\n
"
,
hex
);
...
...
@@ -43,7 +43,7 @@ int parsehex(uint8_t *out, size_t sizeof_out, const char *hex) {
return
0
;
}
void
printhex
(
const
uint8_t
*
in
,
size_t
sizeof_in
)
{
static
void
printhex
(
const
uint8_t
*
in
,
size_t
sizeof_in
)
{
for
(;
sizeof_in
>
0
;
in
++
,
sizeof_in
--
)
{
printf
(
"%02x"
,
*
in
);
}
...
...
@@ -55,7 +55,7 @@ static char **g_argv = NULL;
static
int
error
=
0
;
static
int
done
=
0
;
void
usage
()
{
static
void
usage
()
{
const
char
*
me
=
g_argv
[
0
];
if
(
!
me
)
me
=
"ristretto"
;
for
(
unsigned
i
=
0
;
g_argv
[
0
][
i
];
i
++
)
{
...
...
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