Remove useless key argument from scconf_item_find()

Fix
parse.c: In function ‘scconf_item_find’:
parse.c:80: warning: unused parameter ‘key’


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4164 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
ludovic.rousseau 2010-03-28 14:18:20 +00:00
parent 652ef326b4
commit df96df3356

View File

@ -77,7 +77,7 @@ static void scconf_parse_warning_expect(scconf_parser * parser, const char *toke
parser->line, token);
}
static scconf_item *scconf_item_find(scconf_parser * parser, const char *key)
static scconf_item *scconf_item_find(scconf_parser * parser)
{
scconf_item *item;
@ -96,7 +96,7 @@ static scconf_item *scconf_item_add_internal(scconf_parser * parser, int type)
if (type == SCCONF_ITEM_TYPE_VALUE) {
/* if item with same key already exists, use it */
item = scconf_item_find(parser, parser->key);
item = scconf_item_find(parser);
if (item) {
if (parser->key) {
free(parser->key);