summaryrefslogtreecommitdiffstats
path: root/disk-utils/mkfs.c
diff options
context:
space:
mode:
authorSami Kerola2011-06-29 00:23:01 +0200
committerSami Kerola2011-06-29 13:36:52 +0200
commitd786727a06617a9be8b47e66c5a5aebc927bba2a (patch)
tree64c7e7a87d9c6756b30a7f98050d5231f933cae2 /disk-utils/mkfs.c
parentdocs: add long options to mkfs.8 (diff)
downloadkernel-qcow2-util-linux-d786727a06617a9be8b47e66c5a5aebc927bba2a.tar.gz
kernel-qcow2-util-linux-d786727a06617a9be8b47e66c5a5aebc927bba2a.tar.xz
kernel-qcow2-util-linux-d786727a06617a9be8b47e66c5a5aebc927bba2a.zip
mkfs: include-what-you-use header check
Two headers added #include <limits.h> // for CHAR_MAX #include <stdlib.h> // for exit, EXIT_SUCCESS, getenv, etc Rest sorted, and nls.h recategorized to be local header. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'disk-utils/mkfs.c')
-rw-r--r--disk-utils/mkfs.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/disk-utils/mkfs.c b/disk-utils/mkfs.c
index a03f4cffb..389a21c7b 100644
--- a/disk-utils/mkfs.c
+++ b/disk-utils/mkfs.c
@@ -14,11 +14,14 @@
*/
#include <getopt.h>
+#include <limits.h>
#include <stdio.h>
-#include <unistd.h>
+#include <stdlib.h>
#include <string.h>
-#include <nls.h>
+#include <unistd.h>
+#include "c.h"
+#include "nls.h"
#include "xalloc.h"
#ifndef DEFAULT_FSTYPE