diff --git a/ui/qt/sctp_all_assocs_dialog.cpp b/ui/qt/sctp_all_assocs_dialog.cpp index 6f9646a909..1fff6824e8 100644 --- a/ui/qt/sctp_all_assocs_dialog.cpp +++ b/ui/qt/sctp_all_assocs_dialog.cpp @@ -43,6 +43,7 @@ SCTPAllAssocsDialog::~SCTPAllAssocsDialog() void SCTPAllAssocsDialog::fillTable() { + const sctp_allassocs_info_t *sctp_assocs; GList *list; const sctp_assoc_info_t* assinfo; int numAssocs; @@ -53,7 +54,7 @@ void SCTPAllAssocsDialog::fillTable() ui->assocList->setColumnWidth(3, 150); ui->assocList->setColumnWidth(4, 150); - sctp_assocs = (sctp_allassocs_info_t*)sctp_stat_get_info(); + sctp_assocs = sctp_stat_get_info(); if (sctp_assocs->is_registered == FALSE) { register_tap_listener_sctp_stat(); /* (redissect all packets) */ diff --git a/ui/qt/sctp_all_assocs_dialog.h b/ui/qt/sctp_all_assocs_dialog.h index 7c6a106910..1834a3adb2 100644 --- a/ui/qt/sctp_all_assocs_dialog.h +++ b/ui/qt/sctp_all_assocs_dialog.h @@ -48,7 +48,6 @@ private slots: private: Ui::SCTPAllAssocsDialog *ui; capture_file *cap_file_; - sctp_allassocs_info_t *sctp_assocs; guint16 selected_assoc_id;