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:
committed by
Adrien Destugues
parent
7d07c4bc73
commit
a2027cd5dd
@@ -264,8 +264,10 @@ _IO_new_file_fopen (fp, filename, mode, is32not64)
|
|||||||
int i;
|
int i;
|
||||||
_IO_FILE *result;
|
_IO_FILE *result;
|
||||||
#ifdef _LIBC
|
#ifdef _LIBC
|
||||||
|
#ifndef __HAIKU__
|
||||||
const char *cs;
|
const char *cs;
|
||||||
const char *last_recognized;
|
const char *last_recognized;
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (_IO_file_is_open (fp))
|
if (_IO_file_is_open (fp))
|
||||||
@@ -291,7 +293,9 @@ _IO_new_file_fopen (fp, filename, mode, is32not64)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
#ifdef _LIBC
|
#ifdef _LIBC
|
||||||
|
#ifndef __HAIKU__
|
||||||
last_recognized = mode;
|
last_recognized = mode;
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
for (i = 1; i < 7; ++i)
|
for (i = 1; i < 7; ++i)
|
||||||
{
|
{
|
||||||
@@ -303,18 +307,24 @@ _IO_new_file_fopen (fp, filename, mode, is32not64)
|
|||||||
omode = O_RDWR;
|
omode = O_RDWR;
|
||||||
read_write &= _IO_IS_APPENDING;
|
read_write &= _IO_IS_APPENDING;
|
||||||
#ifdef _LIBC
|
#ifdef _LIBC
|
||||||
|
#ifndef __HAIKU__
|
||||||
last_recognized = mode;
|
last_recognized = mode;
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
continue;
|
continue;
|
||||||
case 'x':
|
case 'x':
|
||||||
oflags |= O_EXCL;
|
oflags |= O_EXCL;
|
||||||
#ifdef _LIBC
|
#ifdef _LIBC
|
||||||
|
#ifndef __HAIKU__
|
||||||
last_recognized = mode;
|
last_recognized = mode;
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
continue;
|
continue;
|
||||||
case 'b':
|
case 'b':
|
||||||
#ifdef _LIBC
|
#ifdef _LIBC
|
||||||
|
#ifndef __HAIKU__
|
||||||
last_recognized = mode;
|
last_recognized = mode;
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
continue;
|
continue;
|
||||||
case 'm':
|
case 'm':
|
||||||
|
|||||||
Reference in New Issue
Block a user