diff options
author | Christophe Fergeau | 2008-08-10 22:38:17 +0200 |
---|---|---|
committer | Matt Colyer | 2008-08-11 09:32:59 -0700 |
commit | 2f2b8d7ea552cbdb5a2cf17ceba364681350f3bb (patch) | |
tree | 3d02c48c43bd1fce5759aa06daac22a12e1db761 /src/lockdown.c | |
parent | 020d7c23b17956098379140f1f0047ae8e78df1b (diff) | |
download | libplist-2f2b8d7ea552cbdb5a2cf17ceba364681350f3bb.tar.gz libplist-2f2b8d7ea552cbdb5a2cf17ceba364681350f3bb.tar.bz2 |
Fix warnings about unused variables
Signed-off-by: Matt Colyer <matt@colyer.name>
Diffstat (limited to 'src/lockdown.c')
-rw-r--r-- | src/lockdown.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lockdown.c b/src/lockdown.c index 480a653..78ab6a9 100644 --- a/src/lockdown.c +++ b/src/lockdown.c @@ -356,8 +356,9 @@ int lockdownd_gen_pair_cert(char *public_key_b64, char **device_cert_b64, char * /* first decode base64 public_key */ gnutls_datum_t pem_pub_key; - pem_pub_key.data = g_base64_decode (public_key_b64, &pem_pub_key.size); - + gsize decoded_size; + pem_pub_key.data = g_base64_decode (public_key_b64, &decoded_size); + pem_pub_key.size = decoded_size; /* now decode the PEM encoded key */ gnutls_datum_t der_pub_key; @@ -396,7 +397,6 @@ int lockdownd_gen_pair_cert(char *public_key_b64, char **device_cert_b64, char * if (1 == ret && 0 != modulus.size && 0 != exponent.size) { gnutls_global_init(); - int effthis = 0; gnutls_datum_t essentially_null = {strdup("abababababababab"), strlen("abababababababab")}; gnutls_x509_privkey_t fake_privkey, root_privkey; |