Skip to content

Commit

Permalink
maint: fix typo in variable name (parse_ls_vga.c)
Browse files Browse the repository at this point in the history
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
  • Loading branch information
zyv committed Jun 3, 2024
1 parent 335c5a7 commit ab7ed3c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/vfs/parse_ls_vga.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@

static char *columns[MAXCOLS]; /* Points to the string in column n */
static int column_ptr[MAXCOLS]; /* Index from 0 to the starting positions of the columns */
static size_t vfs_parce_ls_final_num_spaces = 0;
static size_t vfs_parse_ls_final_num_spaces = 0;

/* --------------------------------------------------------------------------------------------- */
/*** file scope functions ************************************************************************/
Expand Down Expand Up @@ -665,15 +665,15 @@ vfs_split_text (char *p)
void
vfs_parse_ls_lga_init (void)
{
vfs_parce_ls_final_num_spaces = 1;
vfs_parse_ls_final_num_spaces = 1;
}

/* --------------------------------------------------------------------------------------------- */

size_t
vfs_parse_ls_lga_get_final_spaces (void)
{
return vfs_parce_ls_final_num_spaces;
return vfs_parse_ls_final_num_spaces;
}

/* --------------------------------------------------------------------------------------------- */
Expand Down Expand Up @@ -816,7 +816,7 @@ vfs_parse_ls_lga (const char *p, struct stat *s, char **filename, char **linknam
{
*num_spaces = column_ptr[idx] - column_ptr[idx - 1] - strlen (columns[idx - 1]);
if (DIR_IS_DOTDOT (columns[idx]))
vfs_parce_ls_final_num_spaces = *num_spaces;
vfs_parse_ls_final_num_spaces = *num_spaces;
}

for (i = idx + 1, idx2 = 0; i < num_cols; i++)
Expand Down

0 comments on commit ab7ed3c

Please sign in to comment.