Re: [patch 2.5] seq_file for /proc/partitions

From: Stevie O (stevie@qrpff.net)
Date: Sun Mar 24 2002 - 12:28:48 EST


At 11:11 PM 3/23/2002 -0500, Alexander Viro wrote:
>> + return part_start(part, pos);
>
>Erm... Actually that _is_ wrong - what you want is
>
> return ((struct gendisk)v)->next;

Forgive my ignorance, but that doesn't look right....
shouldn't it REALLY be

        return ((struct gendisk*)v)->next;

--
Stevie-O

Real programmers use COPY CON PROGRAM.EXE

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Mar 31 2002 - 22:00:08 EST