From ead23b8777540223a69d5df898709bd1cea57e00 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sat, 12 Feb 2022 12:11:34 +0100 Subject: Fix warning * term/devio.c (ports_do_mach_notify_send_once): Use io_buf_ptr_inband_t type instead of automatically-sized array. --- term/devio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'term/devio.c') diff --git a/term/devio.c b/term/devio.c index 60ee2217..621ec937 100644 --- a/term/devio.c +++ b/term/devio.c @@ -747,7 +747,7 @@ ports_do_mach_notify_send_once (struct port_info *pi) if (input_pending) { /* xxx */ - char msg[] = "Term input check happened\r\n"; + io_buf_ptr_inband_t msg = "Term input check happened\r\n"; int foo; device_write_inband (phys_device, 0, 0, msg, sizeof msg, &foo); /* end xxx */ -- cgit v1.2.3