Fix
test-conf.c: In function ‘ldap_cb’: test-conf.c:32: warning: unused parameter ‘depth’ test-conf.c: In function ‘card_cb’: test-conf.c:60: warning: unused parameter ‘entry’ test-conf.c:60: warning: unused parameter ‘depth’ test-conf.c: In function ‘write_cb’: test-conf.c:81: warning: unused parameter ‘depth’ git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4154 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
10bcef99a9
commit
05dd36dfa9
@ -31,6 +31,8 @@
|
||||
|
||||
static int ldap_cb(const scconf_context * config, const scconf_block * block, scconf_entry * entry, int depth)
|
||||
{
|
||||
(void)depth;
|
||||
|
||||
scconf_entry ldap_entry[] =
|
||||
{
|
||||
{"ldaphost", SCCONF_STRING, SCCONF_VERBOSE, NULL, NULL},
|
||||
@ -59,6 +61,9 @@ static int ldap_cb(const scconf_context * config, const scconf_block * block, sc
|
||||
|
||||
static int card_cb(const scconf_context * config, const scconf_block * block, scconf_entry * entry, int depth)
|
||||
{
|
||||
(void)depth;
|
||||
(void)entry;
|
||||
|
||||
char *str = scconf_list_strdup(block->name, " ");
|
||||
scconf_entry card_entry[] =
|
||||
{
|
||||
@ -80,6 +85,8 @@ static int card_cb(const scconf_context * config, const scconf_block * block, sc
|
||||
|
||||
static int write_cb(scconf_context * config, scconf_block * block, scconf_entry * entry, int depth)
|
||||
{
|
||||
(void)depth;
|
||||
|
||||
scconf_put_str(block, entry->name, "inside write_cb();");
|
||||
scconf_item_add(config, block, NULL, SCCONF_ITEM_TYPE_COMMENT, NULL, "# commentN");
|
||||
return 0; /* 0 for ok, 1 for error */
|
||||
|
Loading…
Reference in New Issue
Block a user