Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
Fix warnings (#105)
Browse files Browse the repository at this point in the history
Initialize pointer in session_record to zero, and make curve tests function a prototype
  • Loading branch information
Christoph Hagen authored and dkonigsberg committed Mar 2, 2018
1 parent 5d6e5a9 commit 9e10362
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/curve.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ struct ec_public_key_list
UT_array *values;
};

int curve_internal_fast_tests()
int curve_internal_fast_tests(int silent)
{
if (all_fast_tests(1) != 0)
if (all_fast_tests(silent) != 0)
return SG_ERR_UNKNOWN;
return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion src/curve.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ extern "C" {
#define CURVE_SIGNATURE_LEN 64
#define VRF_SIGNATURE_LEN 96

int curve_internal_fast_tests();
int curve_internal_fast_tests(int silent);

int curve_decode_point(ec_public_key **public_key, const uint8_t *key_data, size_t key_len, signal_context *global_context);
int ec_public_key_compare(const ec_public_key *key1, const ec_public_key *key2);
Expand Down
2 changes: 1 addition & 1 deletion src/session_record.c
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ int session_record_deserialize(session_record **record, const uint8_t *data, siz
int session_record_copy(session_record **record, session_record *other_record, signal_context *global_context)
{
int result = 0;
session_record *result_record;
session_record *result_record = 0;
signal_buffer *buffer = 0;
size_t len = 0;
uint8_t *data = 0;
Expand Down

0 comments on commit 9e10362

Please sign in to comment.