summaryrefslogtreecommitdiffstats
path: root/term-utils/script.c
diff options
context:
space:
mode:
authorSami Kerola2011-06-28 12:43:25 +0200
committerKarel Zak2011-06-29 11:24:30 +0200
commit8fb810ff26429ad6cfd3348d63d055a40a157063 (patch)
treeb6a7abe174e45bfec2d2f19ad6a6e91bce1cc6a5 /term-utils/script.c
parentscript: remove unnecessary void casting (diff)
downloadkernel-qcow2-util-linux-8fb810ff26429ad6cfd3348d63d055a40a157063.tar.gz
kernel-qcow2-util-linux-8fb810ff26429ad6cfd3348d63d055a40a157063.tar.xz
kernel-qcow2-util-linux-8fb810ff26429ad6cfd3348d63d055a40a157063.zip
script: include-what-you-use header check
The tool proposed; script.c should add these lines: script.c should remove these lines: - #include <sys/file.h> // lines 53-53 - #include <sys/types.h> // lines 48-48 - #include "c.h" // lines 61-61 and the change nearly did what the tool told. We should keep on using c.h, not err.h. The config.h is not needed, it's added automaticly. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'term-utils/script.c')
-rw-r--r--term-utils/script.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/term-utils/script.c b/term-utils/script.c
index 12783d153..7e966ec70 100644
--- a/term-utils/script.c
+++ b/term-utils/script.c
@@ -45,17 +45,20 @@
#include <stdlib.h>
#include <paths.h>
#include <time.h>
-#include <sys/types.h>
#include <sys/stat.h>
#include <termios.h>
#include <sys/ioctl.h>
#include <sys/time.h>
-#include <sys/file.h>
#include <signal.h>
#include <errno.h>
#include <string.h>
#include <getopt.h>
#include <unistd.h>
+#include <fcntl.h>
+#include <libintl.h>
+#include <limits.h>
+#include <locale.h>
+#include <stddef.h>
#include "nls.h"
#include "c.h"