]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
ipcrm: include-what-you-use header check
authorSami Kerola <kerolasa@iki.fi>
Mon, 29 Aug 2011 18:12:41 +0000 (20:12 +0200)
committerSami Kerola <kerolasa@iki.fi>
Sat, 17 Sep 2011 12:25:20 +0000 (14:25 +0200)
Three removes & a sort to alphabetical order.

ipcrm.c should remove these lines:
- #include <ctype.h>  // lines 29-29
- #include <sys/types.h>  // lines 18-18
- #include <unistd.h>  // lines 27-27

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
sys-utils/ipcrm.c

index 66496062760f63bbb97e12aaca98182403339e10..4065c8a05d26186e0761b5b071dabf2735f3e0e3 100644 (file)
@@ -9,26 +9,19 @@
  *
  */
 
+#include <errno.h>
 #include <getopt.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <errno.h>
-
-#include <sys/types.h>
 #include <sys/ipc.h>
-#include <sys/shm.h>
 #include <sys/msg.h>
 #include <sys/sem.h>
+#include <sys/shm.h>
 #include "c.h"
 #include "nls.h"
 #include "strutils.h"
 
-/* for getopt */
-#include <unistd.h>
-/* for tolower and isupper */
-#include <ctype.h>
-
 #ifndef HAVE_UNION_SEMUN
 /* according to X/OPEN we have to define it ourselves */
 union semun {