aboutsummaryrefslogtreecommitdiffstats
path: root/tests/t-data.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2016-09-13 18:48:06 +0000
committerWerner Koch <[email protected]>2016-09-13 18:48:06 +0000
commit9064eebdc05e7149c2c8cc899fbd7874622fb769 (patch)
treee5bffc999f3c38f13cde215945ae8683a5e0c891 /tests/t-data.c
parenttests: Use gpgme_io_write in passhrase callbacks. (diff)
downloadgpgme-9064eebdc05e7149c2c8cc899fbd7874622fb769.tar.gz
gpgme-9064eebdc05e7149c2c8cc899fbd7874622fb769.zip
tests: Mark lots of unused vars and fix const mismatches.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'tests/t-data.c')
-rw-r--r--tests/t-data.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/t-data.c b/tests/t-data.c
index 178675c9..fe2d59ed 100644
--- a/tests/t-data.c
+++ b/tests/t-data.c
@@ -86,6 +86,8 @@ read_cb (void *cb_value, char *buffer, size_t count, size_t *nread)
unsigned int amount = strlen (text) - off;
/* round_t round = *((round_t *) cb_value); */
+ (void)cb_value;
+
if (!buffer && !count && !nread)
{
/* Rewind requested. */
@@ -190,8 +192,9 @@ write_test (round_t round, gpgme_data_t data)
}
}
+
int
-main (int argc, char **argv)
+main (void)
{
round_t round = TEST_INITIALIZER;
char *text_filename = make_filename ("t-data-1.txt");