From f4d8048364860d780082d2eaa555c7e7d12ced4b Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 17 Jan 2017 20:42:31 +0000 Subject: [PATCH 06/16] dbus-monitor: handle default case for binary mode header Also comment why it's OK to not do anything for the modes that don't have a header. We are effectively treating the default case as one of those, on the assumption that future modes are more likely to lack a header than to have one. Based on part of a patch from Thomas Zimmermann. Signed-off-by: Simon McVittie --- tools/dbus-monitor.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/dbus-monitor.c b/tools/dbus-monitor.c index 4edee29e..c6f36d59 100644 --- a/tools/dbus-monitor.c +++ b/tools/dbus-monitor.c @@ -555,6 +555,8 @@ main (int argc, char *argv[]) { case BINARY_MODE_NOT: case BINARY_MODE_RAW: + default: + /* no special header needed */ break; case BINARY_MODE_PCAP: -- 2.11.0