X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=src%2Fpartition.h;h=c84a54028fd39318cb9e927483d3b0baf9b8376a;hb=e0e242d01cf140e5213a90b32ef6088bdedb5ede;hp=23b8b7ccc4940449488e4c33bbf2f69ae3efbe88;hpb=23c77cc092dbbb1e12c47c2b0021d4476b543702;p=rrq%2Fmaintain_lilo.git diff --git a/src/partition.h b/src/partition.h index 23b8b7c..c84a540 100644 --- a/src/partition.h +++ b/src/partition.h @@ -1,15 +1,13 @@ -/* partition.h - Partition table handling */ - -/* -Copyright 1992-1998 Werner Almesberger. -Copyright 1999-2004 John Coffman. -All rights reserved. - -Licensed under the terms contained in the file 'COPYING' in the -source directory. - -*/ - +/* partition.h - Partition table handling + * + * Copyright 1992-1998 Werner Almesberger + * Copyright 1999-2004 John Coffman + * Copyright 2009-2015 Joachim Wiedorn + * All rights reserved. + * + * Licensed under the terms contained in the file 'COPYING' + * in the source directory. + */ #ifndef PARTITION_H #define PARTITION_H @@ -28,10 +26,10 @@ enum {PTW_OKAY=0, PTW_DOS=1, PTW_OS2=2, PTW_SWAP, PTW_XFS, PTW_mask=7, PTW_NTFS=8}; -#define LLSECTORSIZE ((long long)SECTOR_SIZE) +#define LLSECTORSIZE ((int64_t)SECTOR_SIZE) #if __GLIBC__ < 2 || __GLIBC_MINOR__ < 1 -typedef long long lloff_t; +typedef int64_t lloff_t; #ifdef _syscall5 lloff_t lseek64(unsigned int fd, lloff_t offs, unsigned int whence); @@ -82,7 +80,7 @@ void do_install_mbr(char *where, char *what); /* Install a new MBR (Master Boot Record) */ int read_partitions(char *part, int max, int *volid, - struct partition *p, long long *where); + struct partition *p, int64_t *where); /* read all partitions & partition tables */ #endif