From 6e6233521aa4f0e82b79219cb7e32912012d9ccf Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Tue, 13 Oct 2020 18:48:46 -0700 Subject: Have WTAP_ERR_INTERNAL include an err_info string giving details. That way, users won't just see "You got an internal error", the details will be given, so they can report them in a bug. --- wiretap/k12.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wiretap/k12.c') diff --git a/wiretap/k12.c b/wiretap/k12.c index efac1ffc04..81a1697ab7 100644 --- a/wiretap/k12.c +++ b/wiretap/k12.c @@ -1320,7 +1320,7 @@ static gboolean k12_dump(wtap_dumper *wdh, const wtap_rec *rec, static const guint8 k12_eof[] = {0xff,0xff}; -static gboolean k12_dump_finish(wtap_dumper *wdh, int *err) { +static gboolean k12_dump_finish(wtap_dumper *wdh, int *err, gchar **err_info _U_) { k12_dump_t *k12 = (k12_dump_t *)wdh->priv; union { guint8 b[sizeof(guint32)]; @@ -1367,7 +1367,7 @@ static gboolean k12_dump_finish(wtap_dumper *wdh, int *err) { } -gboolean k12_dump_open(wtap_dumper *wdh, int *err) { +gboolean k12_dump_open(wtap_dumper *wdh, int *err, gchar **err_info _U_) { k12_dump_t *k12; if ( ! wtap_dump_file_write(wdh, k12_file_magic, 8, err)) { -- cgit v1.2.3