Skip to content

Commit

Permalink
FIX: error: a label can only be part of a statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed Oct 1, 2024
1 parent 5aa41b0 commit cccb20b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/os/posix/dev-file.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ static REBOOL Seek_File_64(REBREQ *file)

static int Get_File_Info(REBREQ *file)
{
struct stat info;
#ifdef SYS_statx
struct statx infox;
if (statx(AT_FDCWD | AT_STATX_FORCE_SYNC, file->file.path, 0, STATX_BASIC_STATS | STATX_BTIME, &infox) == -1) {
Expand Down Expand Up @@ -199,8 +200,6 @@ static int Get_File_Info(REBREQ *file)
return DR_DONE;
#endif
use_stat:
struct stat info;

if (stat(file->file.path, &info)) {
file->error = errno;
return DR_ERROR;
Expand Down

0 comments on commit cccb20b

Please sign in to comment.