Skip to content

Commit d29056f

Browse files
committed
changing variable name
1 parent 148556b commit d29056f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libltfs/tape.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1188,7 +1188,7 @@ ssize_t tape_write(struct device_data *dev, const char *buf, size_t count, bool
11881188
{
11891189
ssize_t ret;
11901190
struct tc_position current_position;
1191-
int ret_for_update_position = 0;
1191+
int ret_for_current_position = 0;
11921192
unsigned long long diff = 0;
11931193

11941194
CHECK_ARG_NULL(dev, -LTFS_NULL_ARG);
@@ -1245,8 +1245,8 @@ ssize_t tape_write(struct device_data *dev, const char *buf, size_t count, bool
12451245
}
12461246

12471247
if (ltfs_caught_sigcont()) {
1248-
ret_for_update_position = tape_get_position_from_drive(dev, &current_position);
1249-
if (ret_for_update_position) {
1248+
ret_for_current_position = tape_get_position_from_drive(dev, &current_position);
1249+
if (ret_for_current_position) {
12501250
/* Return error since the current tape position was unable to be determined, so there could be an undetected position mismatch */
12511251
ltfsmsg(LTFS_ERR, 11081E, ret);
12521252
return -LTFS_WRITE_ERROR;

0 commit comments

Comments
 (0)