bug-parted
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fwd: Bug#195318: Build problems of parted]


From: Timshel Knoll
Subject: [Fwd: Bug#195318: Build problems of parted]
Date: 05 Jun 2003 08:12:56 +1000

Hi Andrew et al,

Here's some hurd compile fixes.

Cheers,

Timshel

-- 
Timshel Knoll
Debian GNU/Linux Developer      http://www.debian.org/
SPI Contributing Member         http://www.spi-inc.org/
GnuPG:          1024D/DE3E8AA7 Timshel Knoll <address@hidden>
Fingerprint:    6ABC 91A9 E274 ED67 0E32  8F0F 5DFA 9391 DE3E 8AA7
--- Begin Message --- Subject: Bug#195318: Build problems of parted Date: Wed, 04 Jun 2003 18:27:02 +0300 User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3.1) Gecko/20030527 Debian/1.3.1-2
A patch that solves the issue is attached.
--
Ognyan Kulev <address@hidden>, "\"Programmer\""
7D9F 66E6 68B7 A62B 0FCF  EB04 80BF 3A8C A252 9782
--- parted-1.6.5.orig/libparted/disk_gpt.c
+++ parted-1.6.5/libparted/disk_gpt.c
@@ -51,7 +51,7 @@
 #define EFI_PMBR_OSTYPE_EFI 0xEE
 #define MSDOS_MBR_SIGNATURE 0xaa55
                                                                                
-#define GPT_HEADER_SIGNATURE 0x5452415020494645
+#define GPT_HEADER_SIGNATURE 0x5452415020494645ULL
 #define GPT_HEADER_REVISION_V1_00 0x00010000
 #define GPT_HEADER_REVISION_V0_99 0x00009900
  
--- parted-1.6.5.orig/libparted/fs_ext2/ext2.c
+++ parted-1.6.5/libparted/fs_ext2/ext2.c
@@ -355,8 +355,8 @@
        inode->i_blocks = PED_CPU_TO_LE32(EXT2_INODE_BLOCKS(*inode)
                                          + delta * i512perblock);
        size = EXT2_INODE_SIZE(*inode) + delta * fs->blocksize;
-       inode->i_size = PED_CPU_TO_LE32(size % 0x100000000);
-       inode->i_size_high = PED_CPU_TO_LE32(size / 0x100000000);
+       inode->i_size = PED_CPU_TO_LE32(size % 0x100000000LL);
+       inode->i_size_high = PED_CPU_TO_LE32(size / 0x100000000LL);
        inode->i_mtime = PED_CPU_TO_LE32(time(NULL));
 }
                                                                                

--- End Message ---

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]