summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-10-26 16:41:43 +0100
committerLennart Poettering <lennart@poettering.net>2015-10-27 13:25:55 +0100
commite4e73a632524c382139034d4271f53b6089ab4cb (patch)
tree48e286e7dbac59a562431ad05d506833db968f6e /src/core
parent6bedfcbb2970e06a4d3280c8fb62083d252ede73 (diff)
util-lib: split out hex/dec/oct encoding/decoding into its own file
Diffstat (limited to 'src/core')
-rw-r--r--src/core/dbus-execute.c2
-rw-r--r--src/core/machine-id-setup.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/core/dbus-execute.c b/src/core/dbus-execute.c
index a7fbd71144..238fc8efdd 100644
--- a/src/core/dbus-execute.c
+++ b/src/core/dbus-execute.c
@@ -109,7 +109,7 @@ static int property_get_oom_score_adjust(
n = 0;
if (read_one_line_file("/proc/self/oom_score_adj", &t) >= 0)
- safe_atoi(t, &n);
+ safe_atoi32(t, &n);
}
return sd_bus_message_append(reply, "i", n);
diff --git a/src/core/machine-id-setup.c b/src/core/machine-id-setup.c
index c72892b343..ea4bdc5414 100644
--- a/src/core/machine-id-setup.c
+++ b/src/core/machine-id-setup.c
@@ -36,6 +36,7 @@
#include "machine-id-setup.h"
#include "macro.h"
#include "mkdir.h"
+#include "hexdecoct.h"
#include "path-util.h"
#include "process-util.h"
#include "string-util.h"