summaryrefslogtreecommitdiffstats
path: root/rm.c
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <hun@n-dimensional.de>2007-12-14 17:10:41 +0100
committerHans Ulrich Niedermann <hun@n-dimensional.de>2007-12-14 17:10:41 +0100
commitd1f8d11a8b4eff4199d5b5008829e923a032a0d8 (patch)
treee43994fa72c329a1446bdf08021b976084eb14e3 /rm.c
parentfbdee922755585e7995a42d5c2ab6de1fd60b728 (diff)
downloade2tools-d1f8d11a8b4eff4199d5b5008829e923a032a0d8.tar.gz
e2tools-d1f8d11a8b4eff4199d5b5008829e923a032a0d8.tar.xz
e2tools-d1f8d11a8b4eff4199d5b5008829e923a032a0d8.zip
Use one foo.h file per foo.c
Diffstat (limited to 'rm.c')
-rw-r--r--rm.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/rm.c b/rm.c
index 4ccd047..eaa94f4 100644
--- a/rm.c
+++ b/rm.c
@@ -10,10 +10,6 @@
* as well as portions of the ext2fs library (C) 1993-1995 Theodore Ts'o
*/
-#ifndef RM_C
-#define RM_C
-#endif
-
/* Description */
/*
* This file contains function used to remove files in an ext2fs filesystem.
@@ -288,9 +284,9 @@ e2rm(int argc, char *argv[])
} /* end of e2rm */
-static int rm_dir_proc(ext2_ino_t dir, int entry,
- struct ext2_dir_entry *dirent, int offset,
- int blocksize, char *buf, void *verbose)
+static int rm_dir_proc(ext2_ino_t UNUSED_PARM(dir), int entry,
+ struct ext2_dir_entry *dirent, int UNUSED_PARM(offset),
+ int UNUSED_PARM(blocksize), char UNUSED_PARM(*buf), void *verbose)
{
char name[EXT2_NAME_LEN];
int thislen;
@@ -354,7 +350,7 @@ recursive_rm(ext2_ino_t dir, char *name, struct ext2_dir_entry *dirent,
static int
rm_regex_proc(ext2_ino_t dir, int entry, struct ext2_dir_entry *dirent,
- int offset, int blocksize, char *buf, void *arg)
+ int UNUSED_PARM(offset), int UNUSED_PARM(blocksize), char *UNUSED_PARM(buf), void *arg)
{
long retval;
char name[EXT2_NAME_LEN];