summaryrefslogtreecommitdiff
path: root/ui/cli/tap-iostat.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2012-05-11 17:29:56 +0000
committerGuy Harris <guy@alum.mit.edu>2012-05-11 17:29:56 +0000
commitf1b11f62f81bc8984cc50442ef98f2b7dc4370ff (patch)
tree1aca937da1c87c4096da5b663026147c9e036afb /ui/cli/tap-iostat.c
parent88ae29c149d290eebad464358a04997fa6fea3e2 (diff)
downloadwireshark-f1b11f62f81bc8984cc50442ef98f2b7dc4370ff.tar.gz
proto_registrar_get_ftype() returns an FT_ value; make its return type
"enum ftenum" to reflect that, and fix the "switch doesn't handle XXX" warnings that provokes. svn path=/trunk/; revision=42579
Diffstat (limited to 'ui/cli/tap-iostat.c')
-rw-r--r--ui/cli/tap-iostat.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/ui/cli/tap-iostat.c b/ui/cli/tap-iostat.c
index 2ba5089760..cf3ed88595 100644
--- a/ui/cli/tap-iostat.c
+++ b/ui/cli/tap-iostat.c
@@ -191,6 +191,13 @@ iostat_packet(void *arg, packet_info *pinfo, epan_dissect_t *edt, const void *du
val = (guint64)((new_time->secs * NANOSECS_PER_SEC) + new_time->nsecs);
it->counter += val;
break;
+ default:
+ /*
+ * "Can't happen"; see the checks
+ * in register_io_tap().
+ */
+ g_assert_not_reached();
+ break;
}
}
}
@@ -254,6 +261,13 @@ iostat_packet(void *arg, packet_info *pinfo, epan_dissect_t *edt, const void *du
it->counter=val;
}
break;
+ default:
+ /*
+ * "Can't happen"; see the checks
+ * in register_io_tap().
+ */
+ g_assert_not_reached();
+ break;
}
}
}
@@ -310,6 +324,13 @@ iostat_packet(void *arg, packet_info *pinfo, epan_dissect_t *edt, const void *du
if (val>it->counter)
it->counter=val;
break;
+ default:
+ /*
+ * "Can't happen"; see the checks
+ * in register_io_tap().
+ */
+ g_assert_not_reached();
+ break;
}
}
}
@@ -353,6 +374,13 @@ iostat_packet(void *arg, packet_info *pinfo, epan_dissect_t *edt, const void *du
val = (guint64)((new_time->secs * NANOSECS_PER_SEC) + new_time->nsecs);
it->counter += val;
break;
+ default:
+ /*
+ * "Can't happen"; see the checks
+ * in register_io_tap().
+ */
+ g_assert_not_reached();
+ break;
}
}
}