Whamcloud - gitweb
ChangeLog, partinfo.c:
authorTheodore Ts'o <tytso@mit.edu>
Mon, 9 Mar 1998 03:23:51 +0000 (03:23 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 9 Mar 1998 03:23:51 +0000 (03:23 +0000)
  The ioctl BLKGETSIZE requires a long, not an int.

misc/ChangeLog
misc/partinfo.c

index 0c778e9..83b99c7 100644 (file)
@@ -1,3 +1,8 @@
+Sun Mar  8 22:21:48 1998  Theodore Ts'o  <tytso@rsts-11.mit.edu>
+
+       * partinfo.c (main): The ioctl BLKGETSIZE requires a long, not an
+               int. 
+
 Sun Feb  1 16:53:36 1998  Theodore Ts'o  <tytso@rsts-11.mit.edu>
 
        * badblocks.8: Update documentation to note that output format
index 1e3e064..c85f30e 100644 (file)
@@ -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"