*pos += 1;
if (hp_pos >= sizeof(hello))
return NULL;
- return (void *) hello[hp_pos];
+ return &hello[hp_pos];
}
static void hp_stop(struct seq_file *s, void *v)
*pos += 1;
if (hp_pos >= sizeof(hello))
return NULL;
- return (void *) hello[hp_pos];
+ return &hello[hp_pos];
}
static int hp_show(struct seq_file *s, void *v)
{
- seq_putc(s, (char) v);
+ seq_putc(s, *(char *)v);
return 0;
}