]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - swap_super.c
sysfs: Avoid if and return on the same line
[thirdparty/mdadm.git] / swap_super.c
index afcedf32c28fae74d8b6365fe2c3eac232e7283c..b6db5743d5722269c8c3d120cd95b8ffdf8e95d8 100644 (file)
@@ -16,7 +16,9 @@
 
 #define MD_NEW_SIZE_SECTORS(x)         ((x & ~(MD_RESERVED_SECTORS - 1)) - MD_RESERVED_SECTORS)
 
-main(int argc, char *argv[])
+extern long long lseek64(int, long long, int);
+
+int main(int argc, char *argv[])
 {
        int fd, i;
        unsigned long size;
@@ -45,7 +47,6 @@ main(int argc, char *argv[])
                exit(1);
        }
 
-
        for (i=0; i < 4096 ; i+=4) {
                char t = super[i];
                super[i] = super[i+3];
@@ -67,7 +68,6 @@ main(int argc, char *argv[])
                super[32*4+10*4 +i] = t;
        }
 
-
        if (lseek64(fd, offset, 0) < 0LL) {
                perror("lseek64");
                exit(1);
@@ -79,5 +79,3 @@ main(int argc, char *argv[])
        exit(0);
 
 }
-
-