diff options
author | Jim Meyering <meyering@redhat.com> | 2008-07-26 21:22:10 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-07-27 11:57:22 +0200 |
commit | e1e7be655deded3e2d94d8c737249b6c414e303a (patch) | |
tree | 4bc9ff11751ba987ab8a5ebd63019780085f0965 /libparted/labels/rdb.c | |
parent | 4b577b8c87ae91fc6686954f768772df93d3d360 (diff) | |
download | parted-e1e7be655deded3e2d94d8c737249b6c414e303a.tar.gz |
don't call ped_partition_new with "0" as 2nd arg
Instead, use an explicit and equivalent PED_PARTITION_NORMAL.
* libparted/labels/bsd.c (bsd_read):
* libparted/labels/dasd.c (dasd_read):
* libparted/labels/gpt.c (_parse_part_entry):
* libparted/labels/loop.c (loop_read):
* libparted/labels/mac.c (_disk_add_part_map_entry)
(_rawpart_analyse):
* libparted/labels/pc98.c (read_table):
* libparted/labels/rdb.c (amiga_read):
* libparted/labels/sun.c (sun_read):
Diffstat (limited to 'libparted/labels/rdb.c')
-rw-r--r-- | libparted/labels/rdb.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libparted/labels/rdb.c b/libparted/labels/rdb.c index 42e7d71..386b2bd 100644 --- a/libparted/labels/rdb.c +++ b/libparted/labels/rdb.c @@ -2,7 +2,7 @@ libparted - a library for manipulating disk partitions disk_amiga.c - libparted module to manipulate amiga RDB partition tables. - Copyright (C) 2000, 2001, 2004, 2007 Free Software Foundation, Inc. + Copyright (C) 2000, 2001, 2004, 2007-2008 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -547,7 +547,8 @@ amiga_read (PedDisk* disk) + 1) * cylblocks - 1; /* We can now construct a new partition */ - if (!(part = ped_partition_new (disk, 0, NULL, start, end))) { + if (!(part = ped_partition_new (disk, PED_PARTITION_NORMAL, + NULL, start, end))) { free(partition); return 0; } |