[clang-tidy] fix misleading identation

Found with readability-misleading-indentation

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2020-04-18 22:24:27 -07:00
parent ed23cbce64
commit ad52498014
No known key found for this signature in database
GPG Key ID: 36D31CFA845F0E3B
3 changed files with 6 additions and 6 deletions

View 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++;
}
}

View 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;

View 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;