git: 9c5a91f96994 - stable/13 - lib/csu: Get rid of unused fptr typedef on amd64.

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Mon, 12 Jun 2023 12:22:25 UTC
The branch stable/13 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=9c5a91f96994139211aa9900dcf98a358869a854

commit 9c5a91f96994139211aa9900dcf98a358869a854
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2021-07-22 15:28:21 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2023-06-12 01:51:24 +0000

    lib/csu: Get rid of unused fptr typedef on amd64.
    
    (cherry picked from commit feac06569a381dd7fec92c7d490fc34ef0bbdda5)
---
 lib/csu/amd64/crt1_c.c | 2 --
 lib/csu/i386/crt1_c.c  | 6 ++----
 lib/csu/riscv/crt1_c.c | 2 --
 3 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/lib/csu/amd64/crt1_c.c b/lib/csu/amd64/crt1_c.c
index 9dbd34492023..f1c99de9ffe0 100644
--- a/lib/csu/amd64/crt1_c.c
+++ b/lib/csu/amd64/crt1_c.c
@@ -34,8 +34,6 @@ __FBSDID("$FreeBSD$");
 #include "libc_private.h"
 #include "ignore_init.c"
 
-typedef void (*fptr)(void);
-
 #ifdef GCRT
 extern void _mcleanup(void);
 extern void monstartup(void *, void *);
diff --git a/lib/csu/i386/crt1_c.c b/lib/csu/i386/crt1_c.c
index 0d82cda6fa1f..b39134824f7e 100644
--- a/lib/csu/i386/crt1_c.c
+++ b/lib/csu/i386/crt1_c.c
@@ -34,8 +34,6 @@ __FBSDID("$FreeBSD$");
 #include "libc_private.h"
 #include "ignore_init.c"
 
-typedef void (*fptr)(void);
-
 extern void _start(char *, ...);
 
 #ifdef GCRT
@@ -45,11 +43,11 @@ extern int eprol;
 extern int etext;
 #endif
 
-void _start1(fptr, int, char *[]) __dead2;
+void _start1(void (*)(void), int, char *[]) __dead2;
 
 /* The entry function, C part. */
 void
-_start1(fptr cleanup, int argc, char *argv[])
+_start1(void (*cleanup)(void), int argc, char *argv[])
 {
 	char **env;
 
diff --git a/lib/csu/riscv/crt1_c.c b/lib/csu/riscv/crt1_c.c
index 9291d6d200df..11519e46c7f3 100644
--- a/lib/csu/riscv/crt1_c.c
+++ b/lib/csu/riscv/crt1_c.c
@@ -41,8 +41,6 @@ __FBSDID("$FreeBSD$");
 #include "libc_private.h"
 #include "ignore_init.c"
 
-typedef void (*fptr)(void);
-
 #ifdef GCRT
 extern void _mcleanup(void);
 extern void monstartup(void *, void *);