Skip to content

Commit

Permalink
Merge pull request #504 from Tarsnap/misc
Browse files Browse the repository at this point in the history
Nitpicks
  • Loading branch information
cperciva authored Dec 19, 2023
2 parents b1d8828 + 4f2d491 commit 394a92e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion crypto/crypto_entropy.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ static void generate(uint8_t *, size_t);

#ifdef CPUSUPPORT_X86_RDRAND
static void
update_from_rdrand(void) {
update_from_rdrand(void)
{
unsigned int buf[8];

/* This is only *extra* entropy, so it's ok if it fails. */
Expand Down
2 changes: 1 addition & 1 deletion tests/aws/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ s3_headers(const char * key_id, const char * key_secret)
}

int
main(int argc, char ** argv)
main(int argc, char * argv[])
{
const char * filename_bad = "/dev/null";
const char * filename_good = "format.key";
Expand Down
4 changes: 2 additions & 2 deletions tests/elasticarray/elasticarray_perftest.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ ELASTICARRAY_DECL(INTLIST, intlist, int);
#define BENCH_START \
if (monoclock_get(&tv0)) { \
warnp("monoclock"); \
goto err0; \
goto err1; \
} \
for (i = 0; i < REPS; i++)

#define BENCH_END(delta_ns) \
if (monoclock_get(&tv1)) { \
warnp("monoclock"); \
goto err0; \
goto err1; \
} \
(delta_ns) = timeval_diff(tv0, tv1) * 1e9 / (double)REPS;

Expand Down
4 changes: 2 additions & 2 deletions tests/getopt-longjmp/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ enum E {

/* Error on Solaris 11.4 with gcc 7.3.0 -O1. */
static int
getopt_int(int argc, char ** argv)
getopt_int(int argc, char * argv[])
{
/* Command-line arguments. */
int a = 0;
Expand Down Expand Up @@ -84,7 +84,7 @@ getopt_int_int(int argc, char * argv[])
* an error on Debian buster-i386 with clang-7.0.1 -O1 and O2.
*/
static int
getopt_int_int_enum(int argc, char ** argv)
getopt_int_int_enum(int argc, char * argv[])
{
/* Command-line arguments. */
int a = 0;
Expand Down

0 comments on commit 394a92e

Please sign in to comment.