]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core/service: no need for STATUS_TEXT_MAX to reside in header
authorMike Yuan <me@yhndnzj.com>
Sun, 19 Oct 2025 19:43:27 +0000 (21:43 +0200)
committerMike Yuan <me@yhndnzj.com>
Tue, 4 Nov 2025 11:17:30 +0000 (12:17 +0100)
src/core/service.c
src/core/service.h

index f45d0c48011dc332b37da13b5574d88899e869f4..91434f13821f1fe797c2b8fb58f04dc980a2b4e5 100644 (file)
@@ -56,6 +56,8 @@
 #include "unit-name.h"
 #include "utf8.h"
 
+#define STATUS_TEXT_MAX (16U*1024U)
+
 #define service_spawn(...) service_spawn_internal(__func__, __VA_ARGS__)
 
 static const UnitActiveState state_translation_table[_SERVICE_STATE_MAX] = {
index b69f3008de15bacedca4becf0342eb1b2fc7874b..8965dc827b6da54c2dc849059c41a280b2cbaffa 100644 (file)
@@ -298,7 +298,5 @@ ServiceTimeoutFailureMode service_timeout_failure_mode_from_string(const char *s
 
 DEFINE_CAST(SERVICE, Service);
 
-#define STATUS_TEXT_MAX (16U*1024U)
-
 /* Only exported for unit tests */
 int service_deserialize_exec_command(Unit *u, const char *key, const char *value);