]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
[clang-tidy] fix misleading identation
authorRosen Penev <rosenp@gmail.com>
Sun, 19 Apr 2020 05:24:27 +0000 (22:24 -0700)
committerRosen Penev <rosenp@gmail.com>
Mon, 20 Apr 2020 20:21:00 +0000 (13:21 -0700)
Found with readability-misleading-indentation

Signed-off-by: Rosen Penev <rosenp@gmail.com>
disk-utils/fdisk-list.c
lib/timeutils.c
sys-utils/tunelp.c

index 6bc52d704995f0012ee10960b299c5cfc23e5c7a..834c7b4e9368e7e1080c8bb631aa3ccdf706fffb 100644 (file)
@@ -201,9 +201,10 @@ void list_disklabel(struct fdisk_context *cxt)
                if (fdisk_partition_has_wipe(cxt, pa)) {
                        if (!post)
                                fdisk_info(cxt, ""); /* line break */
-                        fdisk_info(cxt, _("Filesystem/RAID signature on partition %zu will be wiped."),
-                                        fdisk_partition_get_partno(pa) + 1);
-                        post++;
+
+                       fdisk_info(cxt, _("Filesystem/RAID signature on partition %zu will be wiped."),
+                                       fdisk_partition_get_partno(pa) + 1);
+                       post++;
                }
        }
 
index 96485045befff27180150cb8c11bfcabf90781c8..8b443cdfb02f16f5a8d966f3b84626a7d834bdb0 100644 (file)
@@ -355,7 +355,7 @@ int parse_timestamp(const char *t, usec_t *usec)
 int get_gmtoff(const struct tm *tp)
 {
        if (tp->tm_isdst < 0)
-       return 0;
+               return 0;
 
 #if HAVE_TM_GMTOFF
        return tp->tm_gmtoff;
index b1e7f75df5655f73890d0fd95a2de4028eafe1ef..731acd14ec99c270ad582ab35bf0cfaa892a5d91 100644 (file)
@@ -292,8 +292,7 @@ int main(int argc, char **argv)
                                        printf(_(", error"));
                                printf("\n");
                        }
-               } else
-               if (ioctl(fd, cmds->op - offset, cmds->val) < 0)
+               } else if (ioctl(fd, cmds->op - offset, cmds->val) < 0)
                        warn(_("ioctl failed"));
                cmdst = cmds;
                cmds = cmds->next;