static int output_symbols(struct depmod *depmod, FILE *out)
{
struct hash_iter iter;
- const struct symbol *sym;
+ const void *v;
fputs("# Aliases for symbols, used by symbol_request().\n", out);
hash_iter_init(depmod->symbols, &iter);
- while (hash_iter_next(&iter, NULL, (const void **) &sym)) {
+ while (hash_iter_next(&iter, NULL, &v)) {
+ const struct symbol *sym = v;
if (sym->owner == NULL)
continue;
char alias[1024];
size_t baselen = sizeof("symbol:") - 1;
struct hash_iter iter;
- const struct symbol *sym;
+ const void *v;
if (out == stdout)
return 0;
memcpy(alias, "symbol:", baselen);
hash_iter_init(depmod->symbols, &iter);
- while (hash_iter_next(&iter, NULL, (const void **) &sym)) {
+ while (hash_iter_next(&iter, NULL, &v)) {
int duplicate;
+ const struct symbol *sym = v;
if (sym->owner == NULL)
continue;