basic + fundamental: Clean up includes

Split out of #37344.
This commit is contained in:
Daan De Meyer
2025-05-25 10:06:07 +02:00
parent e6e6131a2c
commit 0c15577abe
262 changed files with 628 additions and 1207 deletions
+4 -1
View File
@@ -5,7 +5,7 @@
#include "alloc-util.h"
#include "bus-label.h"
#include "hexdecoct.h"
#include "macro.h"
#include "string-util.h"
char* bus_label_escape(const char *s) {
char *r, *t;
@@ -48,6 +48,9 @@ char* bus_label_unescape_n(const char *f, size_t l) {
assert_return(f, NULL);
if (l == SIZE_MAX)
l = strlen(f);
/* Special case for the empty string */
if (l == 1 && *f == '_')
return strdup("");