summaryrefslogtreecommitdiff
path: root/libstore
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-05-08 09:24:31 +0000
committerRoland McGrath <roland@gnu.org>2002-05-08 09:24:31 +0000
commitbfd5e71042092bceb3e4fb6b25aaefd8e0fa70ee (patch)
tree4a222dc968600be6d945f5f9a549a7eab8818789 /libstore
parent028a7d06ca3f5f084337b7543106eca4aed7f9bb (diff)
2002-05-07 Roland McGrath <roland@frob.com>
* module.c (open_class): Add cast to int for %* arg.
Diffstat (limited to 'libstore')
-rw-r--r--libstore/module.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libstore/module.c b/libstore/module.c
index c127e6cb..1fcdf544 100644
--- a/libstore/module.c
+++ b/libstore/module.c
@@ -34,7 +34,7 @@ open_class (int need_open,
/* Construct the name of the shared object for this module. */
if (asprintf (&modname,
- "libstore_%.*s%s", clname_end - name, name,
+ "libstore_%.*s%s", (int) (clname_end - name), name,
STORE_SONAME_SUFFIX) < 0)
return ENOMEM;
@@ -57,7 +57,8 @@ open_class (int need_open,
if (mod == NULL)
return errno ?: ENOENT;
- if (asprintf (&clsym, "store_%.*s_class", clname_end - name, name) < 0)
+ if (asprintf (&clsym, "store_%.*s_class",
+ (int) (clname_end - name), name) < 0)
{
dlclose (mod);
return ENOMEM;
@@ -68,7 +69,7 @@ open_class (int need_open,
if (*classp == NULL)
{
error (0, 0, "invalid store module %.*s: %s",
- clname_end - name, name, dlerror ());
+ (int) (clname_end - name), name, dlerror ());
dlclose (mod);
return EGRATUITOUS;
}