diff options
author | Karel Zak | 2018-04-16 13:48:11 +0200 |
---|---|---|
committer | Karel Zak | 2018-04-16 13:51:37 +0200 |
commit | 89f318625c1178abe1c886bee84ee0e25c1e5dc8 (patch) | |
tree | dcb69fb38e4d8f43b90a615519a4061869ba1f52 /sys-utils/choom.c | |
parent | Merge branch 'choom' (diff) | |
download | kernel-qcow2-util-linux-89f318625c1178abe1c886bee84ee0e25c1e5dc8.tar.gz kernel-qcow2-util-linux-89f318625c1178abe1c886bee84ee0e25c1e5dc8.tar.xz kernel-qcow2-util-linux-89f318625c1178abe1c886bee84ee0e25c1e5dc8.zip |
choom: fix build, remove unnecessary include
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/choom.c')
-rw-r--r-- | sys-utils/choom.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys-utils/choom.c b/sys-utils/choom.c index 080267f91..9920916c1 100644 --- a/sys-utils/choom.c +++ b/sys-utils/choom.c @@ -24,8 +24,6 @@ #include <getopt.h> #include <errno.h> -#include <linux/oom.h> - #include "nls.h" #include "c.h" #include "path.h" @@ -66,7 +64,7 @@ static int get_score_adj(const pid_t pid) static int set_score_adj(const pid_t pid, int adj) { - char buf[sizeof(stringify_value(OOM_SCORE_ADJ_MIN))]; + char buf[sizeof(stringify_value(INT_MAX))]; snprintf(buf, sizeof(buf), "%d", adj); |