Permalink
Browse files

silence compiler warnings in api

  • Loading branch information...
1 parent 18fec4d commit 431d5f9e2dbccf86d1699408daa650a22ef11755 @bwalex committed Jul 3, 2011
Showing with 12 additions and 12 deletions.
  1. +1 −1 tc-play-api.c
  2. +11 −11 tc-play-api.h
View
2 tc-play-api.c
@@ -72,7 +72,7 @@ tc_api_create_volume(tc_api_op *api_opts)
{
int nkeyfiles, n_hkeyfiles;
int create_hidden;
- int err, i;
+ int err;
if ((api_opts == NULL) ||
(api_opts->tc_device == NULL)) {
View
22 tc-play-api.h
@@ -32,21 +32,21 @@
typedef struct tc_api_op {
/* Common fields */
- char *tc_device;
- char *tc_cipher;
- char *tc_prf_hash;
- char *tc_passphrase;
- char **tc_keyfiles;
+ char *tc_device;
+ char *tc_cipher;
+ char *tc_prf_hash;
+ char *tc_passphrase;
+ const char **tc_keyfiles;
/* Fields for mapping */
- char *tc_map_name;
- int tc_password_retries;
- int tc_interactive_prompt;
+ char *tc_map_name;
+ int tc_password_retries;
+ int tc_interactive_prompt;
/* Fields for creation */
- size_t tc_size_hidden_in_blocks;
- char *tc_passphrase_hidden;
- char **tc_keyfiles_hidden;
+ size_t tc_size_hidden_in_blocks;
+ char *tc_passphrase_hidden;
+ const char **tc_keyfiles_hidden;
} tc_api_op;
int tc_api_init(int verbose);

0 comments on commit 431d5f9

Please sign in to comment.