Cleaned up unused variables in glibc fileops code.

Change-Id: Ia97c900bac58e5da542f1ca4c8501a2ffb2e7008
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5674
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
Michael Brumbelow
2025-06-16 19:23:25 +00:00
committed by Adrien Destugues
parent 7d07c4bc73
commit a2027cd5dd
@@ -264,8 +264,10 @@ _IO_new_file_fopen (fp, filename, mode, is32not64)
int i;
_IO_FILE *result;
#ifdef _LIBC
#ifndef __HAIKU__
const char *cs;
const char *last_recognized;
#endif
#endif
if (_IO_file_is_open (fp))
@@ -291,7 +293,9 @@ _IO_new_file_fopen (fp, filename, mode, is32not64)
return NULL;
}
#ifdef _LIBC
#ifndef __HAIKU__
last_recognized = mode;
#endif
#endif
for (i = 1; i < 7; ++i)
{
@@ -303,18 +307,24 @@ _IO_new_file_fopen (fp, filename, mode, is32not64)
omode = O_RDWR;
read_write &= _IO_IS_APPENDING;
#ifdef _LIBC
#ifndef __HAIKU__
last_recognized = mode;
#endif
#endif
continue;
case 'x':
oflags |= O_EXCL;
#ifdef _LIBC
#ifndef __HAIKU__
last_recognized = mode;
#endif
#endif
continue;
case 'b':
#ifdef _LIBC
#ifndef __HAIKU__
last_recognized = mode;
#endif
#endif
continue;
case 'm':