Skip to content

Commit d78d0d4

Browse files
committed
cleanup: NO_OPEN_3 was never defined
1 parent 8722d4b commit d78d0d4

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

mysys/my_open.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,8 @@ File my_open(const char *FileName, int Flags, myf MyFlags)
4545
MyFlags|= my_global_flags;
4646
#if defined(_WIN32)
4747
fd= my_win_open(FileName, Flags);
48-
#elif !defined(NO_OPEN_3)
49-
fd = open(FileName, Flags, my_umask); /* Normal unix */
5048
#else
51-
fd = open((char *) FileName, Flags);
49+
fd = open(FileName, Flags, my_umask);
5250
#endif
5351

5452
fd= my_register_filename(fd, FileName, FILE_BY_OPEN,

plugin/server_audit/server_audit.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,8 @@ static File loc_open(const char *FileName, int Flags)
158158
File fd;
159159
#if defined(_WIN32)
160160
fd= my_win_open(FileName, Flags);
161-
#elif !defined(NO_OPEN_3)
162-
fd = open(FileName, Flags, my_umask); /* Normal unix */
163161
#else
164-
fd = open((char *) FileName, Flags);
162+
fd = open(FileName, Flags, my_umask);
165163
#endif
166164
my_errno= errno;
167165
return fd;

0 commit comments

Comments
 (0)