From: Gaius Mulley Date: Wed, 18 May 2022 19:03:58 +0000 (+0100) Subject: libgm2 corrected spelling and comment formatting standard. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f1b137440e0967f819381429f4439ef3a1a1a1d;p=thirdparty%2Fgcc.git libgm2 corrected spelling and comment formatting standard. libgm2/ChangeLog: * libm2pim/Selective.c: Use initialize spelling. * libm2pim/dtoa.c: Corrected comment formatting. Signed-off-by: Gaius Mulley --- diff --git a/libgm2/ChangeLog b/libgm2/ChangeLog index 3105caa9647e..9245a5181f55 100644 --- a/libgm2/ChangeLog +++ b/libgm2/ChangeLog @@ -9,6 +9,8 @@ * libm2pim/termios.c: Reformatted comments. * libm2pim/wrapc.c: Reformatted comments. * libm2pim/termios.c: Reformatted comments within enum. + * libm2pim/Selective.c: Correct spelling. + * libm2pim/termios.c: Use GNU comment formatting. 2022-05-17 Gaius Mulley diff --git a/libgm2/libm2pim/Selective.c b/libgm2/libm2pim/Selective.c index 593d3d884c9a..a08ab8e6ea4a 100644 --- a/libgm2/libm2pim/Selective.c +++ b/libgm2/libm2pim/Selective.c @@ -96,7 +96,7 @@ Selective_Select (int nooffds, void *readfds, void *writefds, void *exceptfds, } #endif -/* InitTime initialises a timeval structure and returns a pointer to it. */ +/* InitTime initializes a timeval structure and returns a pointer to it. */ #if defined(HAVE_STRUCT_TIMEVAL) struct timeval * diff --git a/libgm2/libm2pim/dtoa.c b/libgm2/libm2pim/dtoa.c index 9dcf2f45cd26..9038b5acafd2 100644 --- a/libgm2/libm2pim/dtoa.c +++ b/libgm2/libm2pim/dtoa.c @@ -215,7 +215,7 @@ dtoa_dtoa (double d, int mode, int ndigits, int *decpt, int *sign) { case maxsignicant: - ndigits += 20; /* enough for exponent */ + ndigits += 20; /* Enough for exponent. */ p = malloc (ndigits); snprintf (format, 50, "%s%d%s", "%.", ndigits - 20, "E"); snprintf (p, ndigits, format, d);