summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2011-08-13 17:53:21 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2011-08-13 17:53:21 +0200
commit760bf0877f5057790d719459f9c7eb863ad19683 (patch)
treea23de89b555adc5acf7943be13b5a3406d3c4fa7 /src
parent491f4668390b8c4fbca21914baf10625ba8bba6f (diff)
downloadgnutls-760bf0877f5057790d719459f9c7eb863ad19683.tar.gz
unload_file was modified to accept a pointer.
Diffstat (limited to 'src')
-rw-r--r--src/cli.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/cli.c b/src/cli.c
index cccdc44c57..74912a5f5a 100644
--- a/src/cli.c
+++ b/src/cli.c
@@ -126,9 +126,9 @@ load_file (const char *file)
}
static void
-unload_file (gnutls_datum_t data)
+unload_file (gnutls_datum_t* data)
{
- free (data.data);
+ free (data->data);
}
#define MAX_CRT 6
@@ -244,7 +244,7 @@ load_keys (void)
gnutls_x509_crt_deinit(crt_list[i]);
}
- unload_file (data);
+ unload_file (&data);
ret = gnutls_privkey_init(&x509_key);
if (ret < 0)
@@ -305,7 +305,7 @@ load_keys (void)
exit (1);
}
- unload_file (data);
+ unload_file (&data);
}
fprintf (stdout, "Processed %d client X.509 certificates...\n",
@@ -342,7 +342,7 @@ load_keys (void)
exit (1);
}
- unload_file (data);
+ unload_file (&data);
ret = gnutls_privkey_init(&pgp_key);
if (ret < 0)
@@ -420,7 +420,7 @@ load_keys (void)
exit (1);
}
- unload_file (data);
+ unload_file (&data);
}