Skip to content

Commit 40632bc

Browse files
committed
FIX: moving the new RDC_FLUSH device command to the tail (so it does not breaks unsupported devices)
1 parent d7e55e1 commit 40632bc

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

src/include/reb-device.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,11 @@ enum {
6464
RDC_MODIFY, // set modes (also get modes)
6565

6666
RDC_CREATE, // create unit target
67-
RDC_FLUSH, // flush output buffers
6867
RDC_DELETE, // delete unit target
6968
RDC_RENAME,
7069
RDC_LOOKUP,
70+
71+
RDC_FLUSH,
7172
RDC_MAX,
7273

7374
RDC_CUSTOM=32 // start of custom commands

src/os/posix/dev-stdio.c

+3
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,9 @@ static DEVICE_CMD_FUNC Dev_Cmds[RDC_MAX] =
391391
Query_IO,
392392
Modify_IO, // modify
393393
Open_Echo, // CREATE used for opening echo file
394+
0, // delete
395+
0, // rename
396+
0, // lookup
394397
Flush_IO
395398
};
396399

src/os/win32/dev-stdio.c

+3
Original file line numberDiff line numberDiff line change
@@ -818,6 +818,9 @@ static DEVICE_CMD_FUNC Dev_Cmds[RDC_MAX] =
818818
Query_IO,
819819
Modify_IO, // modify
820820
Open_Echo, // CREATE used for opening echo file
821+
0, // delete
822+
0, // rename
823+
0, // lookup
821824
Flush_IO
822825
};
823826

0 commit comments

Comments
 (0)