From mint-bounce@lists.fishpool.fi Thu May 15 16:59:35 2008 X-Virus-Scanned: amavisd-new at demon.co.uk Subject: [MiNT] mintlib fixes From: Alan Hourihane To: mint Content-Type: multipart/mixed; boundary="=-HtxpaKTVEKMiq+PsjCHd" Date: Thu, 15 May 2008 21:55:24 +0100 Message-Id: <1210884924.10290.30.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: alanh@fairlite.demon.co.uk Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: --=-HtxpaKTVEKMiq+PsjCHd Content-Type: text/plain Content-Transfer-Encoding: 7bit Attached. Alan. --=-HtxpaKTVEKMiq+PsjCHd Content-Disposition: attachment; filename=mintlib.patch Content-Type: text/x-patch; name=mintlib.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 -__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 }, --=-HtxpaKTVEKMiq+PsjCHd--