diff options
author | Guy Harris <guy@alum.mit.edu> | 2015-02-17 16:40:28 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2015-02-18 00:41:09 +0000 |
commit | 859511db14feae071cc1e6e1889ae39bfd276faa (patch) | |
tree | a6ef5501110220c93d583439f5f0257c243cde64 /epan/dissectors/packet-k12.c | |
parent | 3f765b3ef94fd6044279d47d0b30b46c344e5943 (diff) |
Make UAT record update callbacks return a success/failure indication.
Have them return TRUE on success and FALSE on failure. Check the return
value rather than whether the error string pointer is null or not.
Change-Id: I800a03bcd70a6bbb7b217cf7c4800e9cdcf2189c
Reviewed-on: https://code.wireshark.org/review/7222
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors/packet-k12.c')
-rw-r--r-- | epan/dissectors/packet-k12.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/epan/dissectors/packet-k12.c b/epan/dissectors/packet-k12.c index 58b8aac9ae..792c1e7b38 100644 --- a/epan/dissectors/packet-k12.c +++ b/epan/dissectors/packet-k12.c @@ -296,7 +296,7 @@ dissect_k12(tvbuff_t* tvb,packet_info* pinfo,proto_tree* tree) call_dissector(sub_handle, tvb, pinfo, tree); } -static void +static gboolean k12_update_cb(void* r, char** err) { k12_handles_t* h = (k12_handles_t *)r; @@ -316,12 +316,13 @@ k12_update_cb(void* r, char** err) h->handles[i] = data_handle; g_strfreev(protos); *err = g_strdup_printf("Could not find dissector for: '%s'",protos[i]); - return; + return FALSE; } } g_strfreev(protos); *err = NULL; + return TRUE; } static void* |