mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-29 02:31:05 +00:00
2004-06-19 Yoshinori K. Okuji <okuji@enbug.org>
* stage2/ufs2.h (int8_t): Renamed to ... (grub_uint8_t): ... this. (int16_t): Renamed to ... (grub_int16_t): ... this. (int32_t): Renamed to ... (grub_int32_t): ... this. (int64_t): Renamed to ... (grub_int64_t): ... this. (uint8_t): Renamed to ... (grub_uint8_t): ... this. (uint16_t): Renamed to ... (grub_uint16_t): ... this. (uint32_t): Renamed to ... (grub_uint32_t): ... this. (uint64_t): Renamed to ... (grub_uint64_t): ... this. (u_char): Renamed to ... (grub_u_char): ... this. (u_int): Renamed to ... (grub_u_int): ... this. (u_int8_t): Renamed to ... (grub_u_int8_t): ... this. (u_int16_t): Renamed to ... (grub_u_int16_t): ... this. (u_int32_t): Renamed to ... (grub_u_int32_t): ... this. (u_int64_t): Renamed to ... (grub_u_int64_t): ... this. (ino_t): Renamed to ... (grub_ino_t): ... this. All callers are changed.
This commit is contained in:
1 parent
5b00a4c20d
commit
e15e075464
3 files changed
+186
-151
No files matched your search
+5
-5
@@ -119,7 +119,7 @@ ufs2_mount (void)
|
||||
return retval;
|
||||
}
|
||||
|
||||
static int64_t
|
||||
static grub_int64_t
|
||||
block_map (int file_block)
|
||||
{
|
||||
int bnum, offset, bsize;
|
||||
@@ -161,15 +161,15 @@ block_map (int file_block)
|
||||
mapblock_offset = offset;
|
||||
}
|
||||
|
||||
return (((int64_t *) MAPBUF)[((file_block - NDADDR) % NINDIR (SUPERBLOCK))
|
||||
- mapblock_offset]);
|
||||
return (((grub_int64_t *) MAPBUF)[((file_block - NDADDR) % NINDIR (SUPERBLOCK))
|
||||
- mapblock_offset]);
|
||||
}
|
||||
|
||||
int
|
||||
ufs2_read (char *buf, int len)
|
||||
{
|
||||
int logno, off, size, ret = 0;
|
||||
int64_t map;
|
||||
grub_int64_t map;
|
||||
|
||||
while (len && !errnum)
|
||||
{
|
||||
@@ -208,7 +208,7 @@ ufs2_dir (char *dirname)
|
||||
{
|
||||
char *rest, ch;
|
||||
int block, off, loc, ino = ROOTINO;
|
||||
int64_t map;
|
||||
grub_int64_t map;
|
||||
struct direct *dp;
|
||||
|
||||
/* main loop to find destination inode */
|
||||
|
||||
Reference in new issue
Block a user