diff options
author | Sami Kerola | 2011-08-29 21:34:48 +0200 |
---|---|---|
committer | Sami Kerola | 2011-09-17 14:25:20 +0200 |
commit | 3ab18da8a7884f51b51a1fb6d94f12136e74000e (patch) | |
tree | 659a2c0dfaa6edfb9760dc15a97b8ff4dbb6dc55 /sys-utils/ipcs.c | |
parent | ipcs: add long options (diff) | |
download | kernel-qcow2-util-linux-3ab18da8a7884f51b51a1fb6d94f12136e74000e.tar.gz kernel-qcow2-util-linux-3ab18da8a7884f51b51a1fb6d94f12136e74000e.tar.xz kernel-qcow2-util-linux-3ab18da8a7884f51b51a1fb6d94f12136e74000e.zip |
ipcs: include-what-you-use header check
Two includes added & a sort to alphabetical order.
ipcs.c should add these lines:
#include <features.h> // for __GLIBC__
#include <stddef.h> // for size_t
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'sys-utils/ipcs.c')
-rw-r--r-- | sys-utils/ipcs.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/sys-utils/ipcs.c b/sys-utils/ipcs.c index 6be662ebc..b59682941 100644 --- a/sys-utils/ipcs.c +++ b/sys-utils/ipcs.c @@ -18,22 +18,24 @@ */ -#include <stdio.h> -#include <stdlib.h> -#include <getopt.h> #include <errno.h> -#include <time.h> -#include <pwd.h> +#include <features.h> +#include <getopt.h> #include <grp.h> -#include <unistd.h> -#include <sys/types.h> +#include <pwd.h> +#include <stddef.h> +#include <stdio.h> +#include <stdlib.h> #include <sys/ipc.h> -#include <sys/sem.h> #include <sys/msg.h> +#include <sys/sem.h> #include <sys/shm.h> +#include <sys/types.h> +#include <time.h> +#include <unistd.h> -#include "nls.h" #include "c.h" +#include "nls.h" /*-------------------------------------------------------------------*/ /* SHM_DEST and SHM_LOCKED are defined in kernel headers, |