sfdisk: add hints for scanners [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2017-05-17 11:57:44 +02:00
parent d2f265d629
commit 76ae3fe37a
1 changed files with 2 additions and 0 deletions

View File

@ -1824,6 +1824,7 @@ static int command_fdisk(struct sfdisk *sf, int argc, char **argv)
break; break;
} }
} }
/* fallthrough */
case SFDISK_DONE_WRITE: case SFDISK_DONE_WRITE:
rc = write_changes(sf); rc = write_changes(sf);
break; break;
@ -2026,6 +2027,7 @@ int main(int argc, char *argv[])
break; break;
case 'G': case 'G':
warnx(_("--show-pt-geometry is no more implemented. Using --show-geometry.")); warnx(_("--show-pt-geometry is no more implemented. Using --show-geometry."));
/* fallthrough */
case 'g': case 'g':
sf->act = ACT_SHOW_GEOM; sf->act = ACT_SHOW_GEOM;
break; break;