summaryrefslogtreecommitdiff
path: root/debugfs/lsdel.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>1997-04-26 13:58:21 +0000
committerTheodore Ts'o <tytso@mit.edu>1997-04-26 13:58:21 +0000
commit50e1e10fa0ac12a3e2a9d20a75ee9041873cda96 (patch)
tree7ef931607cf258793edffa5deb1ddb1f46469d04 /debugfs/lsdel.c
parentf3db3566b5e1342e49dffc5ec3f418a838584194 (diff)
downloade2fsprogs-50e1e10fa0ac12a3e2a9d20a75ee9041873cda96.tar.gz
Many files:
Checked in e2fsprogs 0.5c
Diffstat (limited to 'debugfs/lsdel.c')
-rw-r--r--debugfs/lsdel.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/debugfs/lsdel.c b/debugfs/lsdel.c
index 3da9a9ef..8df894e9 100644
--- a/debugfs/lsdel.c
+++ b/debugfs/lsdel.c
@@ -11,7 +11,9 @@
#include <ctype.h>
#include <string.h>
#include <time.h>
-#include <getopt.h>
+#ifdef HAVE_ERRNO_H
+#include <errno.h>
+#endif
#include <sys/types.h>
#include <sys/stat.h>
@@ -34,20 +36,20 @@ struct lsdel_struct {
int bad_blocks;
};
-int deleted_info_compare(const void *a, const void *b)
+static int deleted_info_compare(const void *a, const void *b)
{
- struct deleted_info *arg1, *arg2;
+ const struct deleted_info *arg1, *arg2;
- arg1 = (struct deleted_info *) a;
- arg2 = (struct deleted_info *) b;
+ arg1 = (const struct deleted_info *) a;
+ arg2 = (const struct deleted_info *) b;
return arg1->dtime - arg2->dtime;
}
-int lsdel_proc(ext2_filsys fs,
- blk_t *block_nr,
- int blockcnt,
- void *private)
+static int lsdel_proc(ext2_filsys fs,
+ blk_t *block_nr,
+ int blockcnt,
+ void *private)
{
struct lsdel_struct *lsd = (struct lsdel_struct *) private;