summaryrefslogtreecommitdiffstats
path: root/schedutils/chrt.c
diff options
context:
space:
mode:
authorKarel Zak2009-10-16 01:01:48 +0200
committerKarel Zak2009-10-16 01:01:48 +0200
commitb6534e4fd8d55e1e5127aaeb80537e002e83227b (patch)
treeb9613ce912b5743f60bfbf3190114ebd49ecbb7c /schedutils/chrt.c
parentldattach: use c.h (diff)
downloadkernel-qcow2-util-linux-b6534e4fd8d55e1e5127aaeb80537e002e83227b.tar.gz
kernel-qcow2-util-linux-b6534e4fd8d55e1e5127aaeb80537e002e83227b.tar.xz
kernel-qcow2-util-linux-b6534e4fd8d55e1e5127aaeb80537e002e83227b.zip
chrt: use c.h
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'schedutils/chrt.c')
-rw-r--r--schedutils/chrt.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/schedutils/chrt.c b/schedutils/chrt.c
index 7d6bb2dbc..6728ad3a0 100644
--- a/schedutils/chrt.c
+++ b/schedutils/chrt.c
@@ -29,6 +29,7 @@
#include <errno.h>
#include <err.h>
+#include "c.h"
#include "nls.h"
/* the SCHED_BATCH is supported since Linux 2.6.16
@@ -46,10 +47,6 @@
# define SCHED_IDLE 5
#endif
-#ifndef ARRAY_SIZE
-# define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
-#endif
-
static void show_usage(int rc)
{
fprintf(stdout, _(