lib/csu: Get rid of unused fptr typedef on amd64.
Make i386 and riscv parts not use it. Approved by: kib Differential Revision: https://reviews.freebsd.org/D31281
This commit is contained in:
parent
bbe80bff7c
commit
feac06569a
@ -34,8 +34,6 @@ __FBSDID("$FreeBSD$");
|
|||||||
#include "libc_private.h"
|
#include "libc_private.h"
|
||||||
#include "ignore_init.c"
|
#include "ignore_init.c"
|
||||||
|
|
||||||
typedef void (*fptr)(void);
|
|
||||||
|
|
||||||
#ifdef GCRT
|
#ifdef GCRT
|
||||||
extern void _mcleanup(void);
|
extern void _mcleanup(void);
|
||||||
extern void monstartup(void *, void *);
|
extern void monstartup(void *, void *);
|
||||||
|
@ -34,8 +34,6 @@ __FBSDID("$FreeBSD$");
|
|||||||
#include "libc_private.h"
|
#include "libc_private.h"
|
||||||
#include "ignore_init.c"
|
#include "ignore_init.c"
|
||||||
|
|
||||||
typedef void (*fptr)(void);
|
|
||||||
|
|
||||||
extern void _start(char *, ...);
|
extern void _start(char *, ...);
|
||||||
|
|
||||||
#ifdef GCRT
|
#ifdef GCRT
|
||||||
@ -45,11 +43,11 @@ extern int eprol;
|
|||||||
extern int etext;
|
extern int etext;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void _start1(fptr, int, char *[]) __dead2;
|
void _start1(void (*)(void), int, char *[]) __dead2;
|
||||||
|
|
||||||
/* The entry function, C part. */
|
/* The entry function, C part. */
|
||||||
void
|
void
|
||||||
_start1(fptr cleanup, int argc, char *argv[])
|
_start1(void (*cleanup)(void), int argc, char *argv[])
|
||||||
{
|
{
|
||||||
char **env;
|
char **env;
|
||||||
|
|
||||||
|
@ -41,8 +41,6 @@ __FBSDID("$FreeBSD$");
|
|||||||
#include "libc_private.h"
|
#include "libc_private.h"
|
||||||
#include "ignore_init.c"
|
#include "ignore_init.c"
|
||||||
|
|
||||||
typedef void (*fptr)(void);
|
|
||||||
|
|
||||||
#ifdef GCRT
|
#ifdef GCRT
|
||||||
extern void _mcleanup(void);
|
extern void _mcleanup(void);
|
||||||
extern void monstartup(void *, void *);
|
extern void monstartup(void *, void *);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user