From 7cbd849648d41c8b55b5b5fe618b8d20e75db868 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Sat, 17 May 2025 12:38:59 -0600 Subject: Sort+align #includes --- libmisc/include/libmisc/hash.h | 4 ++-- libmisc/include/libmisc/log.h | 4 ++-- libmisc/log.c | 2 +- libmisc/map.c | 2 +- libmisc/tests/test_rand.c | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) (limited to 'libmisc') diff --git a/libmisc/include/libmisc/hash.h b/libmisc/include/libmisc/hash.h index 91e6b10..58a895f 100644 --- a/libmisc/include/libmisc/hash.h +++ b/libmisc/include/libmisc/hash.h @@ -1,14 +1,14 @@ /* libmisc/hash.h - General-purpose hash utilities * - * Copyright (C) 2024 Luke T. Shumaker + * Copyright (C) 2024-2025 Luke T. Shumaker * SPDX-License-Identifier: AGPL-3.0-or-later */ #ifndef _LIBMISC_HASH_H_ #define _LIBMISC_HASH_H_ -#include /* for uint{n}_t */ #include /* for size_t */ +#include /* for uint{n}_t */ /* djb2 hash */ typedef uint32_t hash_t; diff --git a/libmisc/include/libmisc/log.h b/libmisc/include/libmisc/log.h index e6dfb52..c40b642 100644 --- a/libmisc/include/libmisc/log.h +++ b/libmisc/include/libmisc/log.h @@ -9,9 +9,9 @@ #include /* for uint8_t */ -#include -#include #include +#include +#include #ifdef NDEBUG #define _LOG_NDEBUG 1 diff --git a/libmisc/log.c b/libmisc/log.c index da4c92e..7e917c6 100644 --- a/libmisc/log.c +++ b/libmisc/log.c @@ -8,8 +8,8 @@ #include /* for static_assert() */ -#include #include +#include struct log_stdout {}; LO_IMPLEMENTATION_H(fmt_dest, struct log_stdout, log_stdout); diff --git a/libmisc/map.c b/libmisc/map.c index cc34c16..d1b2a57 100644 --- a/libmisc/map.c +++ b/libmisc/map.c @@ -7,9 +7,9 @@ #include #include -#include #include #include +#include #include #define FLAG_ITER (UINT8_C(1)<<0) diff --git a/libmisc/tests/test_rand.c b/libmisc/tests/test_rand.c index ecb1c49..1cfbd65 100644 --- a/libmisc/tests/test_rand.c +++ b/libmisc/tests/test_rand.c @@ -6,8 +6,8 @@ #include -#include #include +#include #include "test.h" -- cgit v1.2.3-2-g168b