Skip to content

Commit

Permalink
silence compiler warnings in api
Browse files Browse the repository at this point in the history
  • Loading branch information
bwalex committed Jul 3, 2011
1 parent 18fec4d commit 431d5f9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion tc-play-api.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ tc_api_create_volume(tc_api_op *api_opts)
{ {
int nkeyfiles, n_hkeyfiles; int nkeyfiles, n_hkeyfiles;
int create_hidden; int create_hidden;
int err, i; int err;


if ((api_opts == NULL) || if ((api_opts == NULL) ||
(api_opts->tc_device == NULL)) { (api_opts->tc_device == NULL)) {
Expand Down
22 changes: 11 additions & 11 deletions tc-play-api.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -32,21 +32,21 @@


typedef struct tc_api_op { typedef struct tc_api_op {
/* Common fields */ /* Common fields */
char *tc_device; char *tc_device;
char *tc_cipher; char *tc_cipher;
char *tc_prf_hash; char *tc_prf_hash;
char *tc_passphrase; char *tc_passphrase;
char **tc_keyfiles; const char **tc_keyfiles;


/* Fields for mapping */ /* Fields for mapping */
char *tc_map_name; char *tc_map_name;
int tc_password_retries; int tc_password_retries;
int tc_interactive_prompt; int tc_interactive_prompt;


/* Fields for creation */ /* Fields for creation */
size_t tc_size_hidden_in_blocks; size_t tc_size_hidden_in_blocks;
char *tc_passphrase_hidden; char *tc_passphrase_hidden;
char **tc_keyfiles_hidden; const char **tc_keyfiles_hidden;
} tc_api_op; } tc_api_op;


int tc_api_init(int verbose); int tc_api_init(int verbose);
Expand Down

0 comments on commit 431d5f9

Please sign in to comment.