}
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) {
}
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",
{
long err = 0;
struct plugin_file_handle **h = NULL;
- int count = 0;
+ size_t count = 0;
char **filenames = NULL;
int i;
}
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;
{
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? */
{
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? */