f3probe: rename a variable for readability

This commit is contained in:
Michel Machado 2015-02-04 16:37:46 -05:00
parent c3db1edd7c
commit d74ef39bdd

View File

@ -431,7 +431,7 @@ static uint64_t get_udev_dev_size_byte(struct udev_device *dev)
} }
static int wait_for_reset(struct udev *udev, const char *id_serial, static int wait_for_reset(struct udev *udev, const char *id_serial,
uint64_t original_size_byte, const char **final_dev_filename) uint64_t original_size_byte, const char **pfinal_dev_filename)
{ {
bool done = false, went_to_zero = false, already_changed_size = false; bool done = false, went_to_zero = false, already_changed_size = false;
struct udev_monitor *mon; struct udev_monitor *mon;
@ -512,8 +512,8 @@ static int wait_for_reset(struct udev *udev, const char *id_serial,
rc = - ENOMEM; rc = - ENOMEM;
goto mon; goto mon;
} }
free((void *)*final_dev_filename); free((void *)*pfinal_dev_filename);
*final_dev_filename = devnode; *pfinal_dev_filename = devnode;
done = true; done = true;
next: next: