Whamcloud - gitweb
LU-6142 tests: Fix style issues for tchmod.c 41/36441/2
authorArshad Hussain <arshad.super@gmail.com>
Sun, 29 Sep 2019 23:10:50 +0000 (04:40 +0530)
committerOleg Drokin <green@whamcloud.com>
Fri, 6 Dec 2019 01:02:55 +0000 (01:02 +0000)
This patch fixes issues reported by checkpatch
for file lustre/tests/tchmod.c

Test-Parameters: trivial testlist=recovery-small
Signed-off-by: Arshad Hussain <arshad.super@gmail.com>
Change-Id: I59a94c26e553a616d82ecc9a4d493511e808a82e
Reviewed-on: https://review.whamcloud.com/36441
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Shaun Tancheff <stancheff@cray.com>
Reviewed-by: Petros Koutoupis <pkoutoupis@cray.com>
lustre/tests/tchmod.c

index 2d2c320..e266584 100644 (file)
 
 int main(int argc, char **argv)
 {
-        mode_t mode;
+       mode_t mode;
 
-        if (argc != 3) { 
-                printf("usage: %s mode name\n", argv[0]);
-                return 1;
-        }
+       if (argc != 3) {
+               printf("usage: %s mode name\n", argv[0]);
+               return 1;
+       }
 
-        mode = strtoul(argv[1], NULL, 8); 
-        return chmod(argv[2], mode) ? errno : 0;
+       mode = strtoul(argv[1], NULL, 8);
+       return chmod(argv[2], mode) ? errno : 0;
 }