Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
efc9efc4
Unverified
Commit
efc9efc4
authored
Apr 03, 2018
by
Simon Giesecke
Committed by
GitHub
Apr 03, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3037 from bluca/tweetnacl_pedantic
Problem: C++ style comments in C file breaks pedantic build
parents
2aa54d66
15905c55
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
tweetnacl.c
src/tweetnacl.c
+8
-8
No files found.
src/tweetnacl.c
View file @
efc9efc4
...
...
@@ -46,7 +46,7 @@
#pragma warning(disable : 4018 4244 4146)
#endif
/
/ clang-format off
/
* clang-format off */
#include "tweetnacl.h"
...
...
@@ -926,8 +926,8 @@ void randombytes (unsigned char *x,unsigned long long xlen)
{
int
i
;
#ifndef ZMQ_HAVE_GETRANDOM
/
/
Require that random_open has already been called, to avoid
// race conditions.
/
*
Require that random_open has already been called, to avoid
race conditions. */
assert
(
fd
!=
-
1
);
#endif
while
(
xlen
>
0
)
{
...
...
@@ -950,7 +950,7 @@ void randombytes (unsigned char *x,unsigned long long xlen)
}
}
/
/ Do not call manually! Use random_close from random.hpp
/
* Do not call manually! Use random_close from random.hpp */
int
randombytes_close
(
void
)
{
int
rc
=
-
1
;
...
...
@@ -959,11 +959,11 @@ int randombytes_close (void)
fd
=
-
1
;
rc
=
0
;
}
#endif /
/ ZMQ_HAVE_GETRANDOM
#endif
/
* ZMQ_HAVE_GETRANDOM */
return
rc
;
}
/
/ Do not call manually! Use random_open from random.hpp
/
* Do not call manually! Use random_open from random.hpp */
int
sodium_init
(
void
)
{
#ifndef ZMQ_HAVE_GETRANDOM
...
...
@@ -983,11 +983,11 @@ int sodium_init (void)
assert
(
rc
!=
-
1
);
#endif
}
#endif /
/ ZMQ_HAVE_GETRANDOM
#endif
/
* ZMQ_HAVE_GETRANDOM */
return
0
;
}
#endif
#endif
/
/ clang-format on
/
* clang-format on */
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