diff options
| author | Bernard Xiong <[email protected]> | 2021-09-14 22:32:15 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-09-14 22:32:15 +0800 |
| commit | 673718c0a08fe09699765feeed4e499d5df22256 (patch) | |
| tree | 48da46256f9c6093e0a268c037ff019c99716729 /bsp | |
| parent | 8e3112003c53b690d9c757727b91f4a4f96a9b7e (diff) | |
| parent | e91ffdd1a0af24831d0f7d99c88b6332975ed880 (diff) | |
Merge pull request #5057 from mysterywolf/posix
[libc] fix the conflict warning of read and write functions
Diffstat (limited to 'bsp')
| -rw-r--r-- | bsp/x86/drivers/floppy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bsp/x86/drivers/floppy.c b/bsp/x86/drivers/floppy.c index c144eb02eb..be3ab4c179 100644 --- a/bsp/x86/drivers/floppy.c +++ b/bsp/x86/drivers/floppy.c @@ -357,7 +357,7 @@ void rt_floppy_init(void) device->read = rt_floppy_read; device->write = rt_floppy_write; device->control = rt_floppy_control; - device->user_data = NULL; + device->user_data = RT_NULL; rt_device_register(device, "floppy", RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_REMOVABLE | RT_DEVICE_FLAG_STANDALONE); |
