diff options
author | Peter Wu <peter@lekensteyn.nl> | 2017-02-27 11:30:07 +0100 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2017-02-27 12:48:47 +0000 |
commit | 4b2a2eb0a4c393dcf29e505ed8f135e9b85fb60e (patch) | |
tree | 5f093be9e8d86a0bf2b12d898bf82d6348325444 | |
parent | e8ff9f5b488383fba593143fdd81731c7c0c97d0 (diff) | |
download | wireshark-4b2a2eb0a4c393dcf29e505ed8f135e9b85fb60e.tar.gz |
wslua: fix documentation of Struct.fromhex
The default separator is really an empty string, not a single space.
This has been wrongly documented since the beginning.
Change-Id: I5598daec1486ce17cfeeaf5697f9759172db9cf5
Fixes: v1.11.3-rc1-1760-g860747e1e7 ("Adds some Lua helper functions: some commonly used functions, and to help troubleshooting Lua scripts")
Reviewed-on: https://code.wireshark.org/review/20296
Reviewed-by: Michael Mann <mmann78@netscape.net>
-rw-r--r-- | epan/wslua/wslua_struct.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/wslua/wslua_struct.c b/epan/wslua/wslua_struct.c index fb81e3d0ac..1e45aba926 100644 --- a/epan/wslua/wslua_struct.c +++ b/epan/wslua/wslua_struct.c @@ -630,7 +630,7 @@ WSLUA_CONSTRUCTOR Struct_tohex (lua_State *L) { WSLUA_CONSTRUCTOR Struct_fromhex (lua_State *L) { /* Converts the passed-in hex-ascii string to a binary string. */ #define WSLUA_ARG_Struct_fromhex_HEXBYTES 1 /* A string consisting of hexadecimal bytes like "00 B1 A2" or "1a2b3c4d" */ -#define WSLUA_OPTARG_Struct_fromhex_SEPARATOR 2 /* A string separator between hex bytes/words (default=" "). */ +#define WSLUA_OPTARG_Struct_fromhex_SEPARATOR 2 /* A string separator between hex bytes/words (default none). */ const gchar* s = NULL; size_t len = 0; const gchar* sep = NULL; |