]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
play.c: Kill pointless typedef.
authorAndre Noll <maan@tuebingen.mpg.de>
Sun, 18 May 2025 19:40:31 +0000 (21:40 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Tue, 20 May 2025 19:41:33 +0000 (21:41 +0200)
The signature of the function pointer is too simple to warrant a typedef.

play.c

diff --git a/play.c b/play.c
index ca9ce34f313042f813088a759ab197a10e3f8ae7..df06b1ccd417c48e272d3d4cc81bf839a5cd3697 100644 (file)
--- a/play.c
+++ b/play.c
@@ -95,9 +95,8 @@ struct play_task {
        char *afhi_txt;
 };
 
-typedef int (*play_cmd_handler_t)(struct lls_parse_result *lpr);
 struct play_command_info {
-       play_cmd_handler_t handler;
+       int (*handler)(struct lls_parse_result *lpr);
 };
 
 static int loglevel = LL_WARNING;