mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
(menu_displaylist.c) Cleanups
This commit is contained in:
parent
1d271a4684
commit
7a0f6c5653
@ -46,8 +46,8 @@ extern size_t core_len;
|
|||||||
static void print_buf_lines(file_list_t *list, char *buf, int buf_size,
|
static void print_buf_lines(file_list_t *list, char *buf, int buf_size,
|
||||||
unsigned type)
|
unsigned type)
|
||||||
{
|
{
|
||||||
int i, j = 0;
|
|
||||||
char c;
|
char c;
|
||||||
|
int i, j = 0;
|
||||||
char *line_start = buf;
|
char *line_start = buf;
|
||||||
|
|
||||||
for (i = 0; i < buf_size; i++)
|
for (i = 0; i < buf_size; i++)
|
||||||
@ -107,7 +107,7 @@ static void print_buf_lines(file_list_t *list, char *buf, int buf_size,
|
|||||||
|
|
||||||
/* Restore the saved char */
|
/* Restore the saved char */
|
||||||
*(buf + i + 1) = c;
|
*(buf + i + 1) = c;
|
||||||
line_start = buf + i + 1;
|
line_start = buf + i + 1;
|
||||||
}
|
}
|
||||||
/* If the buffer was completely full, and didn't end with a newline, just
|
/* If the buffer was completely full, and didn't end with a newline, just
|
||||||
* ignore the partial last line.
|
* ignore the partial last line.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user