summaryrefslogtreecommitdiff
path: root/misc/partinfo.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>1998-03-09 03:23:51 +0000
committerTheodore Ts'o <tytso@mit.edu>1998-03-09 03:23:51 +0000
commite927168ed69c29df1a405ea71e1e602a6c37436b (patch)
tree810ff823a5245a1784f5e75ed956aabb9e7bb87b /misc/partinfo.c
parentfac9c206e7eba5c7703df5c65163264412b3f516 (diff)
downloade2fsprogs-e927168ed69c29df1a405ea71e1e602a6c37436b.tar.gz
ChangeLog, partinfo.c:
The ioctl BLKGETSIZE requires a long, not an int.
Diffstat (limited to 'misc/partinfo.c')
-rw-r--r--misc/partinfo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/misc/partinfo.c b/misc/partinfo.c
index 1e3e0643..c85f30e6 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 <dev1> <dev2> <dev3>\n\n"