summaryrefslogtreecommitdiff
path: root/misc/partinfo.c
diff options
context:
space:
mode:
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"