From bfd5e71042092bceb3e4fb6b25aaefd8e0fa70ee Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 8 May 2002 09:24:31 +0000 Subject: 2002-05-07 Roland McGrath * module.c (open_class): Add cast to int for %* arg. --- libstore/module.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'libstore') 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; } -- cgit v1.2.3