Skip to content

Commit 9be9ccb

Browse files
committed
refactor: typo
1 parent 921b18c commit 9be9ccb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/fdc.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ typedef struct rw_args_t {
4848
uint8_t n;
4949
uint8_t eot;
5050
uint8_t gpl;
51-
uint8_t stp;
51+
uint8_t dtl;
5252
} rw_args_t;
5353

5454
// Parsing structure for format arguments
@@ -727,7 +727,7 @@ static void buffer_update(void) {
727727
// Ready to serve data
728728
if (ret > DISK_IMAGE_NOMEDIUM) {
729729
if (rw_args->n == 0)
730-
rwcount_max = MIN((size_t)rw_args->stp, (size_t)ret);
730+
rwcount_max = MIN((size_t)rw_args->dtl, (size_t)ret);
731731
else
732732
rwcount_max = (size_t)ret;
733733
}
@@ -781,7 +781,7 @@ static void buffer_write_size(void) {
781781
// Ready to serve data
782782
if (ret > DISK_IMAGE_NOMEDIUM) {
783783
if (rw_args->n == 0)
784-
rwcount_max = MIN((size_t)rw_args->stp, (size_t)ret);
784+
rwcount_max = MIN((size_t)rw_args->dtl, (size_t)ret);
785785
else
786786
rwcount_max = (size_t)ret;
787787
}

0 commit comments

Comments
 (0)