diff options
author | Guy Harris <gharris@sonic.net> | 2020-10-13 18:48:46 -0700 |
---|---|---|
committer | Guy Harris <gharris@sonic.net> | 2020-10-14 04:51:45 +0000 |
commit | 6e6233521aa4f0e82b79219cb7e32912012d9ccf (patch) | |
tree | 1836305bf265c1aff78d61677343f3fa23bc2aac /wiretap/k12.c | |
parent | 92e1b110f3f70d295adb10ce0dc5fad9a7189912 (diff) |
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.
Diffstat (limited to 'wiretap/k12.c')
-rw-r--r-- | wiretap/k12.c | 4 |
1 files changed, 2 insertions, 2 deletions
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)) { |