From c6b8a003b08724fdf46a5a015859da1e01584f44 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 12 May 2024 04:03:27 +0200 Subject: [PATCH] Continue to use spaces for indentation, not tabs. * lib/strftime.c: Untabify. Correct indentation. * tests/test-posix_memalign.c: Untabify. --- ChangeLog | 6 ++++++ lib/strftime.c | 10 +++++----- tests/test-posix_memalign.c | 14 +++++++------- 3 files changed, 18 insertions(+), 12 deletions(-) diff --git a/ChangeLog b/ChangeLog index b96d91fb21..9ccd92700e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2024-05-11 Bruno Haible + + Continue to use spaces for indentation, not tabs. + * lib/strftime.c: Untabify. Correct indentation. + * tests/test-posix_memalign.c: Untabify. + 2024-05-11 Bruno Haible error-h: Avoid namespace pollution on mingw. diff --git a/lib/strftime.c b/lib/strftime.c index 9b205e4802..834f3a79f4 100644 --- a/lib/strftime.c +++ b/lib/strftime.c @@ -143,11 +143,11 @@ extern char *tzname[]; enum pad_style { - ZERO_PAD, /* (default) Pad with 0 unless format says otherwise. */ - ALWAYS_ZERO_PAD, /* '0' Always pad with 0. */ - SIGN_PAD, /* '+' Always output a sign. */ - SPACE_PAD, /* '_' Pad with space. */ - NO_PAD /* '-' Do not pad. */ + ZERO_PAD, /* (default) Pad with 0 unless format says otherwise. */ + ALWAYS_ZERO_PAD, /* '0' Always pad with 0. */ + SIGN_PAD, /* '+' Always output a sign. */ + SPACE_PAD, /* '_' Pad with space. */ + NO_PAD /* '-' Do not pad. */ }; #define TM_YEAR_BASE 1900 diff --git a/tests/test-posix_memalign.c b/tests/test-posix_memalign.c index 803e40c5f5..af71d6d692 100644 --- a/tests/test-posix_memalign.c +++ b/tests/test-posix_memalign.c @@ -63,12 +63,12 @@ main (int argc, char *argv[]) } if (sizeof (void *) <= 8) - { - ASSERT (posix_memalign (&aligned8_blocks[i], 8, size) == 0); - ASSERT (aligned8_blocks[i] != NULL); - ASSERT (((uintptr_t) aligned8_blocks[i] % 8) == 0); - memset (aligned8_blocks[i], 'w', size); - } + { + ASSERT (posix_memalign (&aligned8_blocks[i], 8, size) == 0); + ASSERT (aligned8_blocks[i] != NULL); + ASSERT (((uintptr_t) aligned8_blocks[i] % 8) == 0); + memset (aligned8_blocks[i], 'w', size); + } ASSERT (posix_memalign (&aligned16_blocks[i], 16, size) == 0); ASSERT (aligned16_blocks[i] != NULL); @@ -93,7 +93,7 @@ main (int argc, char *argv[]) if (sizeof (void *) <= 4) free (aligned4_blocks[i]); if (sizeof (void *) <= 8) - free (aligned8_blocks[i]); + free (aligned8_blocks[i]); free (aligned16_blocks[i]); free (aligned32_blocks[i]); free (aligned64_blocks[i]); -- 2.39.5