]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
script: include-what-you-use header check
authorSami Kerola <kerolasa@iki.fi>
Tue, 28 Jun 2011 10:43:25 +0000 (12:43 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 29 Jun 2011 09:24:30 +0000 (11:24 +0200)
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>
term-utils/script.c

index 12783d153bc633d671272912c140df7eeac2fcb1..7e966ec70c916910582da4947f22e46f1c804d72 100644 (file)
 #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"