Skip to content

Commit

Permalink
Fix warnings exposed by clang-3.8
Browse files Browse the repository at this point in the history
Reviewed-by: Richard Levitte <[email protected]>
  • Loading branch information
ekasper committed Apr 9, 2016
1 parent b591470 commit 50eadf2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions apps/s_cb.c
Original file line number Diff line number Diff line change
Expand Up @@ -507,12 +507,12 @@ long bio_dump_callback(BIO *bio, int cmd, const char *argp,

if (cmd == (BIO_CB_READ | BIO_CB_RETURN)) {
BIO_printf(out, "read from %p [%p] (%lu bytes => %ld (0x%lX))\n",
(void *)bio, argp, (unsigned long)argi, ret, ret);
(void *)bio, (void *)argp, (unsigned long)argi, ret, ret);
BIO_dump(out, argp, (int)ret);
return (ret);
} else if (cmd == (BIO_CB_WRITE | BIO_CB_RETURN)) {
BIO_printf(out, "write to %p [%p] (%lu bytes => %ld (0x%lX))\n",
(void *)bio, argp, (unsigned long)argi, ret, ret);
(void *)bio, (void *)argp, (unsigned long)argi, ret, ret);
BIO_dump(out, argp, (int)ret);
}
return (ret);
Expand Down
7 changes: 5 additions & 2 deletions test/ct_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,11 @@ static CT_TEST_FIXTURE set_up(const char *const test_case_name)
{
CT_TEST_FIXTURE fixture;
int setup_ok = 1;
CTLOG_STORE *ctlog_store = CTLOG_STORE_new();
CTLOG_STORE *ctlog_store;

memset(&fixture, 0, sizeof(fixture));

ctlog_store = CTLOG_STORE_new();

if (ctlog_store == NULL) {
setup_ok = 0;
Expand All @@ -115,7 +119,6 @@ static CT_TEST_FIXTURE set_up(const char *const test_case_name)
goto end;
}

memset(&fixture, 0, sizeof(fixture));
fixture.test_case_name = test_case_name;
fixture.ctlog_store = ctlog_store;

Expand Down

0 comments on commit 50eadf2

Please sign in to comment.