aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaius Mulley <gaius.mulley@southwales.ac.uk>2022-05-18 20:03:58 +0100
committerGaius Mulley <gaius.mulley@southwales.ac.uk>2022-05-18 20:03:58 +0100
commit6f1b137440e0967f819381429f4439ef3a1a1a1d (patch)
treeb795f9b747ffe22bd880ff344bcebfb262f0c47c
parent2ac22562550687f539037506fdb5985497c5d5cf (diff)
downloadgcc-6f1b137440e0967f819381429f4439ef3a1a1a1d.zip
gcc-6f1b137440e0967f819381429f4439ef3a1a1a1d.tar.gz
gcc-6f1b137440e0967f819381429f4439ef3a1a1a1d.tar.bz2
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 <gaius.mulley@southwales.ac.uk>
-rw-r--r--libgm2/ChangeLog2
-rw-r--r--libgm2/libm2pim/Selective.c2
-rw-r--r--libgm2/libm2pim/dtoa.c2
3 files changed, 4 insertions, 2 deletions
diff --git a/libgm2/ChangeLog b/libgm2/ChangeLog
index 3105caa..9245a51 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 <gaius.mulley@southwales.ac.uk>
diff --git a/libgm2/libm2pim/Selective.c b/libgm2/libm2pim/Selective.c
index 593d3d8..a08ab8e 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 9dcf2f4..9038b5a 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);