Skip to content

Commit

Permalink
Merge pull request #165 from luca020400/master
Browse files Browse the repository at this point in the history
libexfat: Remove unused parameter in exfat_show_volume_serial
  • Loading branch information
namjaejeon authored May 13, 2021
2 parents ddc2b88 + 91ad75d commit 0032bd2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions include/libexfat.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@ int exfat_write_sector(struct exfat_blk_dev *bd, void *buf,
int exfat_write_checksum_sector(struct exfat_blk_dev *bd,
unsigned int checksum, bool is_backup);
char *exfat_conv_volume_label(struct exfat_dentry *vol_entry);
int exfat_show_volume_serial(struct exfat_blk_dev *bd,
struct exfat_user_input *ui);
int exfat_show_volume_serial(struct exfat_blk_dev *bd);
int exfat_set_volume_serial(struct exfat_blk_dev *bd,
struct exfat_user_input *ui);
unsigned int exfat_clus_to_blk_dev_off(struct exfat_blk_dev *bd,
Expand Down
2 changes: 1 addition & 1 deletion label/label.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ int main(int argc, char *argv[])
if (serial_mode) {
/* Mode to change or display volume serial */
if (flags == EXFAT_GET_VOLUME_SERIAL) {
ret = exfat_show_volume_serial(&bd, &ui);
ret = exfat_show_volume_serial(&bd);
} else if (flags == EXFAT_SET_VOLUME_SERIAL) {
ui.volume_serial = strtoul(argv[3], NULL, 0);
ret = exfat_set_volume_serial(&bd, &ui);
Expand Down
3 changes: 1 addition & 2 deletions lib/libexfat.c
Original file line number Diff line number Diff line change
Expand Up @@ -528,8 +528,7 @@ int exfat_write_checksum_sector(struct exfat_blk_dev *bd,
return ret;
}

int exfat_show_volume_serial(struct exfat_blk_dev *bd,
struct exfat_user_input *ui)
int exfat_show_volume_serial(struct exfat_blk_dev *bd)
{
struct pbr *ppbr;
int ret;
Expand Down
2 changes: 1 addition & 1 deletion tune/tune.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ int main(int argc, char *argv[])

/* Mode to change or display volume serial */
if (flags == EXFAT_GET_VOLUME_SERIAL) {
ret = exfat_show_volume_serial(&bd, &ui);
ret = exfat_show_volume_serial(&bd);
goto close_fd_out;
} else if (flags == EXFAT_SET_VOLUME_SERIAL) {
ret = exfat_set_volume_serial(&bd, &ui);
Expand Down

0 comments on commit 0032bd2

Please sign in to comment.