From e927168ed69c29df1a405ea71e1e602a6c37436b Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Mon, 9 Mar 1998 03:23:51 +0000 Subject: [PATCH] ChangeLog, partinfo.c: The ioctl BLKGETSIZE requires a long, not an int. --- misc/ChangeLog | 5 +++++ misc/partinfo.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/misc/ChangeLog b/misc/ChangeLog index 0c778e9..83b99c7 100644 --- a/misc/ChangeLog +++ b/misc/ChangeLog @@ -1,3 +1,8 @@ +Sun Mar 8 22:21:48 1998 Theodore Ts'o + + * partinfo.c (main): The ioctl BLKGETSIZE requires a long, not an + int. + Sun Feb 1 16:53:36 1998 Theodore Ts'o * badblocks.8: Update documentation to note that output format diff --git a/misc/partinfo.c b/misc/partinfo.c index 1e3e064..c85f30e 100644 --- a/misc/partinfo.c +++ b/misc/partinfo.c @@ -24,7 +24,8 @@ void print_error(char *operation, int error, char *device) int main(int argc, char **argv) { struct hd_geometry loc; - int fd, size, i; + int fd, i; + long size; if (argc == 1) { fprintf(stderr, "Usage: %s \n\n" -- 1.8.3.1