summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2013-04-03 01:48:19 +0200
committerAkira TAGOH <akira@tagoh.org>2013-04-04 17:52:48 +0900
commit6c61f671c95d62664f09f4c418ef623a9d375228 (patch)
treef3a916ed976857d6e57ff688bdbb2ef6eb35a71e
parent1aef1a9a969dc7196a2a29a9117b31c928c610a8 (diff)
fixes for -Wformat
-rw-r--r--liblangtag/lt-ext-module.c4
-rw-r--r--tests/main.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/liblangtag/lt-ext-module.c b/liblangtag/lt-ext-module.c
index 760f88b..517968c 100644
--- a/liblangtag/lt-ext-module.c
+++ b/liblangtag/lt-ext-module.c
@@ -262,7 +262,7 @@ lt_ext_module_load(lt_ext_module_t *module)
(lt_destroy_func_t)dlclose);
func = dlsym(module->module, "module_get_version");
if (!func) {
- lt_warning(dlerror());
+ lt_warning("%s", dlerror());
break;
}
if (((lt_ext_module_version_func_t)func)() != LT_EXT_MODULE_VERSION) {
@@ -272,7 +272,7 @@ lt_ext_module_load(lt_ext_module_t *module)
}
func = dlsym(module->module, "module_get_funcs");
if (!func) {
- lt_warning(dlerror());
+ lt_warning("%s", dlerror());
break;
}
if (!(module->funcs = ((lt_ext_module_get_funcs_func_t)func)())) {
diff --git a/tests/main.c b/tests/main.c
index ce05af3..0020ac7 100644
--- a/tests/main.c
+++ b/tests/main.c
@@ -37,7 +37,7 @@ logger(lt_message_type_t type,
const char *message,
lt_pointer_t user_data)
{
- lt_error_set(&error, type, message);
+ lt_error_set(&error, type, "%s", message);
}
static void