[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[MiNT] mintlib fixes
Attached.
Alan.
diff --git a/login/getutent.c b/login/getutent.c
index 3b7015c..fd48973 100644
--- a/login/getutent.c
+++ b/login/getutent.c
@@ -26,8 +26,7 @@
/* Local buffer to store the result. */
static struct utmp buffer;
-extern struct utmp* __getutent_r (struct utmp*, struct utmp**);
-extern struct utmp* __getutent (void);
+extern int __getutent_r (struct utmp *buffer, struct utmp **result);
struct utmp *
__getutent (void)
diff --git a/mintlib/gmon.c b/mintlib/gmon.c
index 7cbd98e..93324a9 100644
--- a/mintlib/gmon.c
+++ b/mintlib/gmon.c
@@ -53,7 +53,7 @@ extern int __profile_frequency __P ((void));
struct __bb *__bb_head; /* Head of basic-block list or NULL. */
-struct gmonparam _gmonparam = { GMON_PROF_OFF };
+struct gmonparam _gmonparam = { GMON_PROF_OFF, 0, 0, 0, 0, NULL, 0, 0, 0, 0, 0, 0, 0 };
/*
* See profil(2) where this is described:
diff --git a/stdio/defmode.c b/stdio/defmode.c
index 2cae170..71b3377 100644
--- a/stdio/defmode.c
+++ b/stdio/defmode.c
@@ -14,4 +14,4 @@
*/
#include <stdio.h>
-__io_mode __default_mode__ = { 0 };
+__io_mode __default_mode__ = { 0, 0, 0, 0, 0, 0, 0 };
diff --git a/stdlib/fpioconst.c b/stdlib/fpioconst.c
index 50d4537..c71f26f 100644
--- a/stdlib/fpioconst.c
+++ b/stdlib/fpioconst.c
@@ -436,7 +436,7 @@ const mp_limb_t __tens[] =
const struct mp_power _fpioconst_pow10[LDBL_MAX_10_EXP_LOG + 1] =
{
- { TENS_P0_IDX, TENS_P0_SIZE, 4, },
+ { TENS_P0_IDX, TENS_P0_SIZE, 4, 0 },
{ TENS_P1_IDX, TENS_P1_SIZE, 7, 4 },
{ TENS_P2_IDX, TENS_P2_SIZE, 14, 10 },
{ TENS_P3_IDX, TENS_P3_SIZE, 27, 24 },