summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEzra Peisach <epeisach@mit.edu>2008-10-27 18:59:08 +0000
committerEzra Peisach <epeisach@mit.edu>2008-10-27 18:59:08 +0000
commitbac74cc69e7510548b023d7b1c1eb477c688b12d (patch)
tree7238171efb4e615eeb88db80024408ecfcd2970f
parent4c30805cdcfb74c16060a9056e9104c8ccc9396d (diff)
downloadkrb5-bac74cc69e7510548b023d7b1c1eb477c688b12d.tar.gz
krb5-bac74cc69e7510548b023d7b1c1eb477c688b12d.tar.xz
krb5-bac74cc69e7510548b023d7b1c1eb477c688b12d.zip
signed vs. unsigned warnings cleanup
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20925 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r--src/util/support/plugins.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/util/support/plugins.c b/src/util/support/plugins.c
index c790d8cba..5391d7be7 100644
--- a/src/util/support/plugins.c
+++ b/src/util/support/plugins.c
@@ -453,12 +453,12 @@ krb5int_plugin_file_handle_array_init (struct plugin_file_handle ***harray)
}
static long
-krb5int_plugin_file_handle_array_add (struct plugin_file_handle ***harray, int *count,
+krb5int_plugin_file_handle_array_add (struct plugin_file_handle ***harray, size_t *count,
struct plugin_file_handle *p)
{
long err = 0;
struct plugin_file_handle **newharray = NULL;
- int newcount = *count + 1;
+ size_t newcount = *count + 1;
newharray = realloc (*harray, ((newcount + 1) * sizeof (**harray))); /* +1 for NULL */
if (newharray == NULL) {
@@ -528,7 +528,7 @@ krb5int_get_plugin_filenames (const char * const *filebases, char ***filenames)
}
if (!err) {
- int j;
+ size_t j;
for (i = 0; !err && filebases[i]; i++) {
for (j = 0; !err && fileexts[j]; j++) {
if (asprintf(&tempnames[(i*exts_count)+j], "%s%s",
@@ -564,7 +564,7 @@ krb5int_open_plugin_dirs (const char * const *dirnames,
{
long err = 0;
struct plugin_file_handle **h = NULL;
- int count = 0;
+ size_t count = 0;
char **filenames = NULL;
int i;
@@ -618,7 +618,7 @@ krb5int_open_plugin_dirs (const char * const *dirnames,
}
if (!err) {
- int len = NAMELEN (d);
+ size_t len = NAMELEN (d);
if (asprintf(&filepath, "%s/%*s", dirnames[i], len, d->d_name) < 0) {
filepath = NULL;
err = ENOMEM;
@@ -683,7 +683,7 @@ krb5int_get_plugin_dir_data (struct plugin_dir_handle *dirhandle,
{
long err = 0;
void **p = NULL;
- int count = 0;
+ size_t count = 0;
/* XXX Do we need to add a leading "_" to the symbol name on any
modern platforms? */
@@ -742,7 +742,7 @@ krb5int_get_plugin_dir_func (struct plugin_dir_handle *dirhandle,
{
long err = 0;
void (**p)() = NULL;
- int count = 0;
+ size_t count = 0;
/* XXX Do we need to add a leading "_" to the symbol name on any
modern platforms? */