Skip to content

Commit

Permalink
multipath-tools: fix an assignment ambiguity
Browse files Browse the repository at this point in the history
spotted by indent:
./kpartx/gpt.c:623: Warning:old style assignment ambiguity in "=-". Assuming "= -"

Cc: Martin Wilck <mwilck@suse.com>
Cc: Benjamin Marzinski <bmarzins@redhat.com>
Cc: Christophe Varoqui <christophe.varoqui@opensvc.com>
Cc: DM-DEVEL ML <dm-devel@lists.linux.dev>
Signed-off-by: Xose Vazquez Perez <xose.vazquez@gmail.com>
Reviewed-by: Martin Wilck <mwilck@suse.com>
  • Loading branch information
xosevp authored and mwilck committed Jan 23, 2024
1 parent 7b6c874 commit da35556
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kpartx/gpt.c
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ read_gpt_pt (int fd, __attribute__((unused)) struct slice all,
gpt_entry *ptes = NULL;
unsigned int i;
int n = 0;
int last_used_index=-1;
int last_used_index = -1;
int sector_size_mul = get_sector_size(fd)/512;

if (!find_valid_gpt (fd, &gpt, &ptes) || !gpt || !ptes) {
Expand Down

0 comments on commit da35556

Please sign in to comment.