summaryrefslogtreecommitdiffstats
path: root/sys-utils/choom.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys-utils/choom.c')
-rw-r--r--sys-utils/choom.c4
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);