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 | |
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>
-rw-r--r-- | sys-utils/Makemodule.am | 4 | ||||
-rw-r--r-- | sys-utils/choom.c | 4 |
2 files changed, 3 insertions, 5 deletions
diff --git a/sys-utils/Makemodule.am b/sys-utils/Makemodule.am index db76e2621..ff87cddca 100644 --- a/sys-utils/Makemodule.am +++ b/sys-utils/Makemodule.am @@ -20,12 +20,12 @@ flock_SOURCES = sys-utils/flock.c lib/monotonic.c lib/timer.c flock_LDADD = $(LDADD) libcommon.la $(REALTIME_LIBS) endif -#if BUILD_CHOOM +if BUILD_CHOOM usrbin_exec_PROGRAMS += choom dist_man_MANS += sys-utils/choom.1 choom_SOURCES = sys-utils/choom.c choom_LDADD = $(LDADD) libcommon.la -#endif +endif if BUILD_IPCMK usrbin_exec_PROGRAMS += ipcmk 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); |