diff options
author | Jean-Baptiste Boric <jblbeurope@gmail.com> | 2021-05-15 12:34:40 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-05-17 18:14:05 +0100 |
commit | 3038edab00f4aa112a8ec78114be232174e84078 (patch) | |
tree | ed11a200c1faf952eafce16b9af17245dca9bac4 /Userland/Utilities | |
parent | b9d3df70e08f1cd37af35b1750426637d498a184 (diff) | |
download | serenity-3038edab00f4aa112a8ec78114be232174e84078.zip |
Utilities: Correct non-standard assert macros includes
Diffstat (limited to 'Userland/Utilities')
29 files changed, 29 insertions, 1 deletions
diff --git a/Userland/Utilities/arp.cpp b/Userland/Utilities/arp.cpp index 2f7f8f0514..1f38705437 100644 --- a/Userland/Utilities/arp.cpp +++ b/Userland/Utilities/arp.cpp @@ -4,6 +4,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#include <AK/Assertions.h> #include <AK/ByteBuffer.h> #include <AK/JsonObject.h> #include <AK/String.h> diff --git a/Userland/Utilities/base64.cpp b/Userland/Utilities/base64.cpp index 53f7d419bc..a57f6f961d 100644 --- a/Userland/Utilities/base64.cpp +++ b/Userland/Utilities/base64.cpp @@ -4,6 +4,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#include <AK/Assertions.h> #include <AK/Base64.h> #include <AK/ByteBuffer.h> #include <LibCore/ArgsParser.h> diff --git a/Userland/Utilities/copy.cpp b/Userland/Utilities/copy.cpp index 21fcb30b4a..3adfb1c5a5 100644 --- a/Userland/Utilities/copy.cpp +++ b/Userland/Utilities/copy.cpp @@ -4,6 +4,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#include <AK/Assertions.h> #include <AK/ByteBuffer.h> #include <AK/String.h> #include <AK/StringBuilder.h> diff --git a/Userland/Utilities/crash.cpp b/Userland/Utilities/crash.cpp index f655d3a51c..c9bbf76463 100644 --- a/Userland/Utilities/crash.cpp +++ b/Userland/Utilities/crash.cpp @@ -5,6 +5,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#include <AK/Assertions.h> #include <AK/Function.h> #include <AK/String.h> #include <Kernel/IO.h> diff --git a/Userland/Utilities/df.cpp b/Userland/Utilities/df.cpp index a1cce02aba..8717c447b8 100644 --- a/Userland/Utilities/df.cpp +++ b/Userland/Utilities/df.cpp @@ -4,6 +4,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#include <AK/Assertions.h> #include <AK/ByteBuffer.h> #include <AK/JsonArray.h> #include <AK/JsonObject.h> diff --git a/Userland/Utilities/du.cpp b/Userland/Utilities/du.cpp index fc1ea7acf6..cc60dfa722 100644 --- a/Userland/Utilities/du.cpp +++ b/Userland/Utilities/du.cpp @@ -4,6 +4,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#include <AK/Assertions.h> #include <AK/ByteBuffer.h> #include <AK/LexicalPath.h> #include <AK/String.h> diff --git a/Userland/Utilities/expr.cpp b/Userland/Utilities/expr.cpp index 55d00a8495..cd6400a5e6 100644 --- a/Userland/Utilities/expr.cpp +++ b/Userland/Utilities/expr.cpp @@ -4,6 +4,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#include <AK/Assertions.h> #include <AK/GenericLexer.h> #include <AK/NonnullOwnPtr.h> #include <AK/OwnPtr.h> diff --git a/Userland/Utilities/find.cpp b/Userland/Utilities/find.cpp index de21073329..524a5575a3 100644 --- a/Userland/Utilities/find.cpp +++ b/Userland/Utilities/find.cpp @@ -4,6 +4,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#include <AK/Assertions.h> #include <AK/LexicalPath.h> #include <AK/NonnullOwnPtr.h> #include <AK/OwnPtr.h> diff --git a/Userland/Utilities/grep.cpp b/Userland/Utilities/grep.cpp index 922788bc60..a2483650bc 100644 --- a/Userland/Utilities/grep.cpp +++ b/Userland/Utilities/grep.cpp @@ -4,6 +4,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#include <AK/Assertions.h> #include <AK/ByteBuffer.h> #include <AK/ScopeGuard.h> #include <AK/String.h> diff --git a/Userland/Utilities/gron.cpp b/Userland/Utilities/gron.cpp index 00fab8e1b5..67c27149ce 100644 --- a/Userland/Utilities/gron.cpp +++ b/Userland/Utilities/gron.cpp @@ -4,6 +4,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#include <AK/Assertions.h> #include <AK/ByteBuffer.h> #include <AK/JsonArray.h> #include <AK/JsonObject.h> diff --git a/Userland/Utilities/ifconfig.cpp b/Userland/Utilities/ifconfig.cpp index ef0c225a92..41c7b03aaa 100644 --- a/Userland/Utilities/ifconfig.cpp +++ b/Userland/Utilities/ifconfig.cpp @@ -4,6 +4,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#include <AK/Assertions.h> #include <AK/ByteBuffer.h> #include <AK/JsonArray.h> #include <AK/JsonObject.h> diff --git a/Userland/Utilities/jp.cpp b/Userland/Utilities/jp.cpp index 4efd93f07d..4ee1a852b6 100644 --- a/Userland/Utilities/jp.cpp +++ b/Userland/Utilities/jp.cpp @@ -4,6 +4,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#include <AK/Assertions.h> #include <AK/ByteBuffer.h> #include <AK/JsonArray.h> #include <AK/JsonObject.h> diff --git a/Userland/Utilities/js.cpp b/Userland/Utilities/js.cpp index 4eb6f555e4..978a92c5c2 100644 --- a/Userland/Utilities/js.cpp +++ b/Userland/Utilities/js.cpp @@ -5,6 +5,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#include <AK/Assertions.h> #include <AK/ByteBuffer.h> #include <AK/Format.h> #include <AK/NonnullOwnPtr.h> diff --git a/Userland/Utilities/ls.cpp b/Userland/Utilities/ls.cpp index 948515a98d..739583149a 100644 --- a/Userland/Utilities/ls.cpp +++ b/Userland/Utilities/ls.cpp @@ -4,6 +4,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#include <AK/Assertions.h> #include <AK/HashMap.h> #include <AK/NumberFormat.h> #include <AK/QuickSort.h> diff --git a/Userland/Utilities/lsirq.cpp b/Userland/Utilities/lsirq.cpp index ff46b008a9..79196c47a6 100644 --- a/Userland/Utilities/lsirq.cpp +++ b/Userland/Utilities/lsirq.cpp @@ -4,6 +4,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#include <AK/Assertions.h> #include <AK/ByteBuffer.h> #include <AK/JsonArray.h> #include <AK/JsonObject.h> diff --git a/Userland/Utilities/man.cpp b/Userland/Utilities/man.cpp index 619e7f537d..9af4e02a23 100644 --- a/Userland/Utilities/man.cpp +++ b/Userland/Utilities/man.cpp @@ -4,6 +4,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#include <AK/Assertions.h> #include <AK/ByteBuffer.h> #include <AK/String.h> #include <LibCore/ArgsParser.h> diff --git a/Userland/Utilities/mount.cpp b/Userland/Utilities/mount.cpp index ff3c3511d4..fd4fed8627 100644 --- a/Userland/Utilities/mount.cpp +++ b/Userland/Utilities/mount.cpp @@ -4,6 +4,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#include <AK/Assertions.h> #include <AK/ByteBuffer.h> #include <AK/JsonArray.h> #include <AK/JsonObject.h> diff --git a/Userland/Utilities/ntpquery.cpp b/Userland/Utilities/ntpquery.cpp index 089c294fc5..c5abba8523 100644 --- a/Userland/Utilities/ntpquery.cpp +++ b/Userland/Utilities/ntpquery.cpp @@ -6,6 +6,7 @@ #define _BSD_SOURCE #define _DEFAULT_SOURCE +#include <AK/Assertions.h> #include <AK/Endian.h> #include <AK/Random.h> #include <LibCore/ArgsParser.h> diff --git a/Userland/Utilities/ping.cpp b/Userland/Utilities/ping.cpp index d554692bf4..3d0466f632 100644 --- a/Userland/Utilities/ping.cpp +++ b/Userland/Utilities/ping.cpp @@ -4,6 +4,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#include <AK/Assertions.h> #include <LibCore/ArgsParser.h> #include <arpa/inet.h> #include <errno.h> diff --git a/Userland/Utilities/pmap.cpp b/Userland/Utilities/pmap.cpp index 8a738865a8..24ae1e1636 100644 --- a/Userland/Utilities/pmap.cpp +++ b/Userland/Utilities/pmap.cpp @@ -4,6 +4,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#include <AK/Assertions.h> #include <AK/ByteBuffer.h> #include <AK/JsonObject.h> #include <AK/QuickSort.h> diff --git a/Userland/Utilities/printf.cpp b/Userland/Utilities/printf.cpp index 3d8b631a3d..576db3d5c8 100644 --- a/Userland/Utilities/printf.cpp +++ b/Userland/Utilities/printf.cpp @@ -4,6 +4,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#include <AK/Assertions.h> #include <AK/PrintfImplementation.h> #include <AK/String.h> #include <AK/StringBuilder.h> diff --git a/Userland/Utilities/syscall.cpp b/Userland/Utilities/syscall.cpp index 86aea17ad6..c376ae8d16 100644 --- a/Userland/Utilities/syscall.cpp +++ b/Userland/Utilities/syscall.cpp @@ -4,6 +4,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#include <AK/Assertions.h> #include <AK/Debug.h> #include <AK/Iterator.h> #include <AK/Vector.h> diff --git a/Userland/Utilities/tar.cpp b/Userland/Utilities/tar.cpp index 403b18f4f9..2ef629d7b2 100644 --- a/Userland/Utilities/tar.cpp +++ b/Userland/Utilities/tar.cpp @@ -4,6 +4,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#include <AK/Assertions.h> #include <AK/LexicalPath.h> #include <AK/Span.h> #include <AK/Vector.h> diff --git a/Userland/Utilities/test.cpp b/Userland/Utilities/test.cpp index 6d93328257..aea9d67c7b 100644 --- a/Userland/Utilities/test.cpp +++ b/Userland/Utilities/test.cpp @@ -4,6 +4,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#include <AK/Assertions.h> #include <AK/LexicalPath.h> #include <AK/NonnullOwnPtr.h> #include <AK/OwnPtr.h> diff --git a/Userland/Utilities/test_env.cpp b/Userland/Utilities/test_env.cpp index cf85668997..3cc66ebd9a 100644 --- a/Userland/Utilities/test_env.cpp +++ b/Userland/Utilities/test_env.cpp @@ -4,7 +4,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ -#include <assert.h> +#include <AK/Assertions.h> #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/Userland/Utilities/traceroute.cpp b/Userland/Utilities/traceroute.cpp index 704a2de992..ae44f05f54 100644 --- a/Userland/Utilities/traceroute.cpp +++ b/Userland/Utilities/traceroute.cpp @@ -4,6 +4,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#include <AK/Assertions.h> #include <AK/String.h> #include <LibCore/ArgsParser.h> #include <LibCore/ElapsedTimer.h> diff --git a/Userland/Utilities/unzip.cpp b/Userland/Utilities/unzip.cpp index d2d6744a18..5fe9de4e6c 100644 --- a/Userland/Utilities/unzip.cpp +++ b/Userland/Utilities/unzip.cpp @@ -4,6 +4,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#include <AK/Assertions.h> #include <AK/MappedFile.h> #include <AK/NumberFormat.h> #include <LibArchive/Zip.h> diff --git a/Userland/Utilities/utmpupdate.cpp b/Userland/Utilities/utmpupdate.cpp index 54e09a4ff0..067a64225e 100644 --- a/Userland/Utilities/utmpupdate.cpp +++ b/Userland/Utilities/utmpupdate.cpp @@ -4,6 +4,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#include <AK/Assertions.h> #include <AK/ByteBuffer.h> #include <AK/JsonObject.h> #include <AK/JsonValue.h> diff --git a/Userland/Utilities/watch.cpp b/Userland/Utilities/watch.cpp index 4054b4b0f8..e10fba6453 100644 --- a/Userland/Utilities/watch.cpp +++ b/Userland/Utilities/watch.cpp @@ -4,6 +4,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#include <AK/Assertions.h> #include <AK/String.h> #include <AK/StringBuilder.h> #include <AK/Time.h> |