Change-Id: Ic0a70b28bfdb57c4c2ddf07cf071a85042672c9e
Reviewed-on: https://code.wireshark.org/review/25941
Reviewed-by: Guy Harris <guy@alum.mit.edu>
}
gboolean
-do_export_pdu(const char *filter, gchar *tap_name, exp_pdu_t *exp_pdu_tap_data)
+do_export_pdu(const char *filter, const gchar *tap_name, exp_pdu_t *exp_pdu_tap_data)
{
char *error;
error = exp_pdu_pre_open(tap_name, filter, exp_pdu_tap_data);
* Filters the current opened capture file into a temporary file. On success,
* TRUE is returned and the filtered file is opened into the UI.
*/
-gboolean do_export_pdu(const char *filter, gchar *tap_name, exp_pdu_t *data);
+gboolean do_export_pdu(const char *filter, const gchar *tap_name, exp_pdu_t *data);
#ifdef __cplusplus
const QByteArray& filter = ui->displayFilterLineEdit->text().toUtf8();
const QByteArray& tap_name = ui->comboBox->currentText().toUtf8();
- do_export_pdu(filter.constData(), (gchar *)tap_name.constData(), &exp_pdu_data);
+ do_export_pdu(filter.constData(), tap_name.constData(), &exp_pdu_data);
}
ExportPDUDialog::~ExportPDUDialog()
{