Remove unused QUAL_FAULT code (was used by non-Linux code only).
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
diff --git a/defs.h b/defs.h
index 9b14a21..3562079 100644
--- a/defs.h
+++ b/defs.h
@@ -466,11 +466,10 @@
#define QUAL_VERBOSE 0x004 /* decode the structures of this syscall */
#define QUAL_RAW 0x008 /* print all args in hex for this syscall */
#define QUAL_SIGNAL 0x010 /* report events with this signal */
-#define QUAL_FAULT 0x020 /* report events with this fault */
-#define QUAL_READ 0x040 /* dump data read on this file descriptor */
-#define QUAL_WRITE 0x080 /* dump data written to this file descriptor */
-#define UNDEFINED_SCNO 0x100 /* Used only in tcp->qual_flg */
+#define QUAL_READ 0x020 /* dump data read on this file descriptor */
+#define QUAL_WRITE 0x040 /* dump data written to this file descriptor */
typedef uint8_t qualbits_t;
+#define UNDEFINED_SCNO 0x100 /* Used only in tcp->qual_flg */
#define DEFAULT_QUAL_FLAGS (QUAL_TRACE | QUAL_ABBREV | QUAL_VERBOSE)
diff --git a/syscall.c b/syscall.c
index 452ac8e..5fce9d8 100644
--- a/syscall.c
+++ b/syscall.c
@@ -320,7 +320,7 @@
}
#endif
-static int qual_syscall(), qual_signal(), qual_fault(), qual_desc();
+static int qual_syscall(), qual_signal(), qual_desc();
static const struct qual_options {
int bitflag;
@@ -339,9 +339,6 @@
{ QUAL_SIGNAL, "signal", qual_signal, "signal" },
{ QUAL_SIGNAL, "signals", qual_signal, "signal" },
{ QUAL_SIGNAL, "s", qual_signal, "signal" },
- { QUAL_FAULT, "fault", qual_fault, "fault" },
- { QUAL_FAULT, "faults", qual_fault, "fault" },
- { QUAL_FAULT, "m", qual_fault, "fault" },
{ QUAL_READ, "read", qual_desc, "descriptor" },
{ QUAL_READ, "reads", qual_desc, "descriptor" },
{ QUAL_READ, "r", qual_desc, "descriptor" },
@@ -445,12 +442,6 @@
}
static int
-qual_fault(const char *s, int bitflag, int not)
-{
- return -1;
-}
-
-static int
qual_desc(const char *s, int bitflag, int not)
{
if (*s >= '0' && *s <= '9') {