summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2022-02-12 12:11:34 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-02-12 12:11:34 +0100
commitead23b8777540223a69d5df898709bd1cea57e00 (patch)
tree2e4683dbd4290b301518a4c965ad88542439e1f4
parent943cf7a540dc9330d81236c557d719ca6f1bb186 (diff)
Fix warning
* term/devio.c (ports_do_mach_notify_send_once): Use io_buf_ptr_inband_t type instead of automatically-sized array.
-rw-r--r--term/devio.c2
1 files changed, 1 insertions, 1 deletions
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 */