From 05dd36dfa9c5e7b3b37c983ae161242ab50276d8 Mon Sep 17 00:00:00 2001 From: "ludovic.rousseau" Date: Sun, 28 Mar 2010 11:24:14 +0000 Subject: [PATCH] =?UTF-8?q?Fix=20test-conf.c:=20In=20function=20=E2=80=98l?= =?UTF-8?q?dap=5Fcb=E2=80=99:=20test-conf.c:32:=20warning:=20unused=20para?= =?UTF-8?q?meter=20=E2=80=98depth=E2=80=99=20test-conf.c:=20In=20function?= =?UTF-8?q?=20=E2=80=98card=5Fcb=E2=80=99:=20test-conf.c:60:=20warning:=20?= =?UTF-8?q?unused=20parameter=20=E2=80=98entry=E2=80=99=20test-conf.c:60:?= =?UTF-8?q?=20warning:=20unused=20parameter=20=E2=80=98depth=E2=80=99=20te?= =?UTF-8?q?st-conf.c:=20In=20function=20=E2=80=98write=5Fcb=E2=80=99:=20te?= =?UTF-8?q?st-conf.c:81:=20warning:=20unused=20parameter=20=E2=80=98depth?= =?UTF-8?q?=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4154 c6295689-39f2-0310-b995-f0e70906c6a9 --- src/scconf/test-conf.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/scconf/test-conf.c b/src/scconf/test-conf.c index edb0a171..6fe697ca 100644 --- a/src/scconf/test-conf.c +++ b/src/scconf/test-conf.c @@ -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 */