Cygwin: devices: drop MAX_CONSOLES and fix FH_CONS_MAX

FH_CONS_MAX should refelect the fact that we allow 128 consoles, even if
it's unused.

Suggested-by: Achim Gratz <Stromeko@nexgo.de>
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2019-11-04 10:34:14 +01:00 committed by Ken Brown
parent 830418fb7a
commit a2ae31951d
1 changed files with 1 additions and 2 deletions

View File

@ -19,7 +19,6 @@ typedef unsigned short _minor_t;
#include <dirent.h> #include <dirent.h>
#include "cygheap_malloc.h" #include "cygheap_malloc.h"
#define MAX_CONSOLES 63
enum fh_devices enum fh_devices
{ {
DEV_TTY_MAJOR = 5, DEV_TTY_MAJOR = 5,
@ -31,7 +30,7 @@ enum fh_devices
DEV_CONS_MAJOR = 3, DEV_CONS_MAJOR = 3,
FH_CONS = FHDEV (DEV_CONS_MAJOR, 0), FH_CONS = FHDEV (DEV_CONS_MAJOR, 0),
FH_CONS_MAX = FHDEV (DEV_CONS_MAJOR, MAX_CONSOLES), FH_CONS_MAX = FHDEV (DEV_CONS_MAJOR, 127),
DEV_PTYM_MAJOR = 128, DEV_PTYM_MAJOR = 128,
FH_PTYM = FHDEV (DEV_PTYM_MAJOR, 0), FH_PTYM = FHDEV (DEV_PTYM_MAJOR, 0),