summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>1997-11-03 19:46:49 +0000
committerTheodore Ts'o <tytso@mit.edu>1997-11-03 19:46:49 +0000
commit80c0fc3492278168448017e79730905aa5b9b62b (patch)
treeda9e69c17ffd625e25eecc6ba91c8bea68f9e93a /misc
parent08b213017f8371ce4b56ad4d368eb0f92211d04e (diff)
downloade2fsprogs-80c0fc3492278168448017e79730905aa5b9b62b.tar.gz
Many files:
resize2fs.c, ext2_block_move.c ext2_inode_move.c: Only include printf statements if RESIZE2FS_DEBUG is defined. main.c: Don't read in the bitmaps since resize2fs.c does that. e2label.c, mke2fs.c: Adjust header files.
Diffstat (limited to 'misc')
-rw-r--r--misc/e2label.c18
-rw-r--r--misc/mke2fs.c2
2 files changed, 17 insertions, 3 deletions
diff --git a/misc/e2label.c b/misc/e2label.c
index 2b4f1711..928a896f 100644
--- a/misc/e2label.c
+++ b/misc/e2label.c
@@ -5,8 +5,24 @@
*
*/
-#include <fcntl.h>
#include <stdio.h>
+#include <string.h>
+#include <fcntl.h>
+#include <ctype.h>
+#include <termios.h>
+#include <time.h>
+#ifdef HAVE_GETOPT_H
+#include <getopt.h>
+#endif
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+#ifdef HAVE_ERRNO_H
+#include <errno.h>
+#endif
#define EXT2_SUPER_MAGIC 0xEF53
diff --git a/misc/mke2fs.c b/misc/mke2fs.c
index 81a0262f..47dfc425 100644
--- a/misc/mke2fs.c
+++ b/misc/mke2fs.c
@@ -36,11 +36,9 @@
#ifdef HAVE_MNTENT_H
#include <mntent.h>
#endif
-#include <malloc.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>
-#include <stdio.h>
#ifdef HAVE_LINUX_FS_H
#include <linux/fs.h>