summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/disk.c
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2002-07-03 18:38:05 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2002-07-03 18:38:05 +0000
commit1cdb4f411c123a1f7402c9efbe46b3b05c3d94a1 (patch)
tree54c7b6b4bbaf2e493e773f9e48d7eb459f60f197 /mdk-stage1/disk.c
parenta3fd355593f7ab9ae5c6d57ec69ef3f5a2f8cb9a (diff)
downloaddrakx-backup-do-not-use-1cdb4f411c123a1f7402c9efbe46b3b05c3d94a1.tar
drakx-backup-do-not-use-1cdb4f411c123a1f7402c9efbe46b3b05c3d94a1.tar.gz
drakx-backup-do-not-use-1cdb4f411c123a1f7402c9efbe46b3b05c3d94a1.tar.bz2
drakx-backup-do-not-use-1cdb4f411c123a1f7402c9efbe46b3b05c3d94a1.tar.xz
drakx-backup-do-not-use-1cdb4f411c123a1f7402c9efbe46b3b05c3d94a1.zip
compile with -W
Diffstat (limited to 'mdk-stage1/disk.c')
-rw-r--r--mdk-stage1/disk.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/mdk-stage1/disk.c b/mdk-stage1/disk.c
index e4593dfc4..8488a767e 100644
--- a/mdk-stage1/disk.c
+++ b/mdk-stage1/disk.c
@@ -45,7 +45,7 @@ struct partition_detection_anchor {
static int seek_and_compare(int fd, struct partition_detection_anchor anch)
{
char buf[500];
- int count;
+ size_t count;
if (lseek(fd, anch.offset, SEEK_SET) == (off_t)-1) {
log_perror("seek failed");
return -1;
@@ -70,13 +70,13 @@ static const char * detect_partition_type(char * dev)
struct partition_detection_anchor anchor2;
};
struct partition_detection_info partitions_signatures[] = {
- { "Linux Swap", { 4086, "SWAP-SPACE" }, { 0, NULL } },
- { "Linux Swap", { 4086, "SWAPSPACE2" }, { 0, NULL } },
- { "Ext2", { 0x438, "\x53\xEF" }, { 0, NULL } },
- { "ReiserFS", { 0x10034, "ReIsErFs" }, { 0, NULL } },
- { "ReiserFS", { 0x10034, "ReIsEr2Fs" }, { 0, NULL } },
+ { "Linux Swap", { 4086, "SWAP-SPACE" }, { 0, NULL }, { 0, NULL } },
+ { "Linux Swap", { 4086, "SWAPSPACE2" }, { 0, NULL }, { 0, NULL } },
+ { "Ext2", { 0x438, "\x53\xEF" }, { 0, NULL }, { 0, NULL } },
+ { "ReiserFS", { 0x10034, "ReIsErFs" }, { 0, NULL }, { 0, NULL } },
+ { "ReiserFS", { 0x10034, "ReIsEr2Fs" }, { 0, NULL }, { 0, NULL } },
{ "XFS", { 0, "XFSB" }, { 0x200, "XAGF" }, { 0x400, "XAGI" } },
- { "JFS", { 0x8000, "JFS1" }, { 0, NULL } },
+ { "JFS", { 0x8000, "JFS1" }, { 0, NULL }, { 0, NULL } },
{ "NTFS", { 0x1FE, "\x55\xAA" }, { 0x3, "NTFS" }, { 0, NULL } },
{ "FAT32", { 0x1FE, "\x55\xAA" }, { 0x52, "FAT32" }, { 0, NULL } },
{ "FAT", { 0x1FE, "\x55\xAA" }, { 0x36, "FAT" }, { 0, NULL } },