Re: struct name error?
On Mon, Mar 29, 1999 at 04:26:56AM +0200, Hartmut Koptein wrote:
> Hi,
>
> in libfdisk/fdisk.c line 744 and 745 we have:
>
> /* If swap_ent is not a partition on the local disks, then ignore it */
> p = fdisk_find_partition_by_name(swap_ent.name);
> free(swap_ent.name);
>
> swap_ent is from:
>
> struct swpmntent *swap_ent;
Uh, oh, ... typo.
> But i can't find 'swpmntent' for linux-2.2.x. I think it this struct:
>
> struct swpent
> {
> char *name;
> int type; /* 0 = partition, 1 = file */
> int size;
> int used;
> int prio;
> };
You're right.
Thanks,
--
Enrique Zanardi ezanardi@ull.es
Reply to: