void
ByteViewText::hexPrintCommon()
{
- int i = 0, j, k = 0, b, len;
+ int i = 0, j, k = 0, len;
const guint8 *pd;
QString line;
static guchar hexchars[16] = {
'0', '1', '2', '3', '4', '5', '6', '7',
'8', '9', 'a', 'b', 'c', 'd', 'e', 'f'};
- static const guint8 bitmask[8] = {
- 0x80, 0x40, 0x20, 0x10, 0x08, 0x04, 0x02, 0x01 };
+// static const guint8 bitmask[8] = {
+// 0x80, 0x40, 0x20, 0x10, 0x08, 0x04, 0x02, 0x01 };
guchar c = '\0';
// progdlg_t *progbar = NULL;
}
// XXX - Copied from main_proto_draw.c
-static int
-bit_num(int offset, int start_point)
-{
- return (offset - start_point) / 9;
-}
+//static int
+//bit_num(int offset, int start_point)
+//{
+// return (offset - start_point) / 9;
+//}
// XXX - Copied from main_proto_draw.c
static int
static void
console_log_handler(const char *log_domain, GLogLevelFlags log_level,
- const char *message, gpointer user_data _U_)
+ const char *message, gpointer user_data)
{
+ Q_UNUSED(user_data);
QString level;
QDateTime qt = QDateTime::currentDateTime();
stats_tree taps plugins will be registered as tap listeners
by stats_tree_stat.c and need to registered before that */
+ g_log(NULL, G_LOG_LEVEL_DEBUG, "plugin_dir: %s", get_plugin_dir());
#ifdef HAVE_PLUGINS
register_all_plugin_tap_listeners();
#endif
QModelIndex PacketListModel::index(int row, int column, const QModelIndex &parent)
const
{
+ Q_UNUSED(parent);
if (row >= visibleRows.count() || row < 0 || column >= cf->cinfo.num_cols)
return QModelIndex();
// Everything is under the root.
QModelIndex PacketListModel::parent(const QModelIndex &index) const
{
+ Q_UNUSED(index);
return QModelIndex();
}
int PacketListModel::columnCount(const QModelIndex &parent) const
{
+ Q_UNUSED(parent);
return cf->cinfo.num_cols;
}