summaryrefslogtreecommitdiff
path: root/Userland/Utilities/pmemdump.cpp
diff options
context:
space:
mode:
authorBen Wiederhake <BenWiederhake.GitHub@gmx.de>2023-01-02 16:57:12 +0100
committerTim Flynn <trflynn89@pm.me>2023-01-02 20:27:20 -0500
commit6b7ce19161d352dd8f479e9fef6ffe8cefb46b3c (patch)
tree7a8a8e083d004a142891fa775dec34638331de4f /Userland/Utilities/pmemdump.cpp
parentf07847e099b203e42b6cc613acf3eecd4af55c9d (diff)
downloadserenity-6b7ce19161d352dd8f479e9fef6ffe8cefb46b3c.zip
Everywhere: Remove unused includes of LibC/stdlib.h
These instances were detected by searching for files that include stdlib.h, but don't match the regex: \\b(_abort|abort|abs|aligned_alloc|arc4random|arc4random_buf|arc4random_ uniform|atexit|atof|atoi|atol|atoll|bsearch|calloc|clearenv|div|div_t|ex it|_Exit|EXIT_FAILURE|EXIT_SUCCESS|free|getenv|getprogname|grantpt|labs| ldiv|ldiv_t|llabs|lldiv|lldiv_t|malloc|malloc_good_size|malloc_size|mble n|mbstowcs|mbtowc|mkdtemp|mkstemp|mkstemps|mktemp|posix_memalign|posix_o penpt|ptsname|ptsname_r|putenv|qsort|qsort_r|rand|RAND_MAX|random|reallo c|realpath|secure_getenv|serenity_dump_malloc_stats|serenity_setenv|sete nv|setprogname|srand|srandom|strtod|strtof|strtol|strtold|strtoll|strtou l|strtoull|system|unlockpt|unsetenv|wcstombs|wctomb)\\b (Without the linebreaks.) This regex is pessimistic, so there might be more files that don't actually use anything from the stdlib. In theory, one might use LibCPP to detect things like this automatically, but let's do this one step after another.
Diffstat (limited to 'Userland/Utilities/pmemdump.cpp')
-rw-r--r--Userland/Utilities/pmemdump.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/Userland/Utilities/pmemdump.cpp b/Userland/Utilities/pmemdump.cpp
index de8185fd7f..77293db453 100644
--- a/Userland/Utilities/pmemdump.cpp
+++ b/Userland/Utilities/pmemdump.cpp
@@ -14,7 +14,6 @@
#include <fcntl.h>
#include <inttypes.h>
#include <stdio.h>
-#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
#include <sys/stat.h>