aboutsummaryrefslogtreecommitdiff
path: root/lib/serial/list.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/serial/list.c')
-rw-r--r--lib/serial/list.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/serial/list.c b/lib/serial/list.c
index 8b94114..9f86bac 100644
--- a/lib/serial/list.c
+++ b/lib/serial/list.c
@@ -4,10 +4,10 @@
* `spl_last_successful_candidate`: last candidate which returned
* a valid iterator. */
-typedef TIO_EXTERN_TYPE(int) (*spl_func)
+typedef TIO_EXTERN_TYPE(int) spl_func
OF((tio_iter_t **));
-TIO_LOCAL_DATA(spl_func const * const) spl_candidates[] = {
+TIO_LOCAL_DATA(spl_func *) spl_candidates[] = {
#ifndef LIBTIO_DISABLED_WINDOWS
&tio_list_windows_serial_ports,
#endif
@@ -20,7 +20,7 @@ TIO_LOCAL_DATA(spl_func const * const) spl_candidates[] = {
NULL
};
-TIO_LOCAL_DATA(spl_func const *) spl_last_successful_candidate = 0;
+TIO_LOCAL_DATA(spl_func *) spl_last_successful_candidate = 0;
/* `tio_list_serial_ports()`: list the serial ports, in an agnostic way. */
@@ -35,7 +35,7 @@ TIO_EXTERN(int) tio_list_serial_ports(tio_iter_t **iterp)
}
{
- spl_func const * const *func;
+ spl_func **func;
for (func = spl_candidates; func; func++) {
err = (**func)(iterp);