revert changes 4154 and 4155 as suggested by Martin Paljak
http://www.opensc-project.org/pipermail/opensc-devel/2010-March/013827.html git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4163 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
425efc939a
commit
652ef326b4
|
@ -81,8 +81,6 @@ static scconf_item *scconf_item_find(scconf_parser * parser, const char *key)
|
|||
{
|
||||
scconf_item *item;
|
||||
|
||||
(void)key;
|
||||
|
||||
for (item = parser->block->items; item; item = item->next) {
|
||||
if (item->type == SCCONF_ITEM_TYPE_VALUE &&
|
||||
strcasecmp(item->key, parser->key) == 0) {
|
||||
|
|
|
@ -31,8 +31,6 @@
|
|||
|
||||
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},
|
||||
|
@ -61,9 +59,6 @@ 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[] =
|
||||
{
|
||||
|
@ -85,8 +80,6 @@ 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