aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wslua
diff options
context:
space:
mode:
authorSake Blok <sake@euronet.nl>2007-10-16 23:42:33 +0000
committerSake Blok <sake@euronet.nl>2007-10-16 23:42:33 +0000
commit6bec9d3d9e9382f41924339563f17aba6b346798 (patch)
tree0f87cd34f039a68004ef24dc4d35b3653ff2f3fd /epan/wslua
parent4e6eec17b131555d08fec348dfd861339a288c28 (diff)
From tmiller@hcjbtech.org : Spelling error on GDS DB protocol dissector: "Buffer lenght:"
(recursively grepped through the source and corrected all occurences, even the ones just in comments) svn path=/trunk/; revision=23211
Diffstat (limited to 'epan/wslua')
-rw-r--r--epan/wslua/wslua_dumper.c2
-rw-r--r--epan/wslua/wslua_tvb.c10
2 files changed, 6 insertions, 6 deletions
diff --git a/epan/wslua/wslua_dumper.c b/epan/wslua/wslua_dumper.c
index faf361a632..b0fcf6f947 100644
--- a/epan/wslua/wslua_dumper.c
+++ b/epan/wslua/wslua_dumper.c
@@ -77,7 +77,7 @@ WSLUA_CONSTRUCTOR PseudoHeader_eth(lua_State* L) {
Creates an ethernet pseudoheader
*/
-#define WSLUA_OPTARG_PseudoHeader_eth_FCSLEN 1 /* the fcs lenght */
+#define WSLUA_OPTARG_PseudoHeader_eth_FCSLEN 1 /* the fcs length */
PseudoHeader ph = g_malloc(sizeof(struct lua_pseudo_header));
ph->type = PHDR_ETH;
diff --git a/epan/wslua/wslua_tvb.c b/epan/wslua/wslua_tvb.c
index bf605f1668..acb59cb886 100644
--- a/epan/wslua/wslua_tvb.c
+++ b/epan/wslua/wslua_tvb.c
@@ -213,7 +213,7 @@ WSLUA_METHOD ByteArray_len(lua_State* L) {
WSLUA_METHOD ByteArray_subset(lua_State* L) {
/* obtain a segment of a ByteArray */
#define WSLUA_ARG_ByteArray_set_index_OFFSET 2 /* the position of the first byte */
-#define WSLUA_ARG_ByteArray_set_index_LENGTH 2 /* the lenght of the segment */
+#define WSLUA_ARG_ByteArray_set_index_LENGTH 2 /* the length of the segment */
ByteArray ba = checkByteArray(L,1);
int offset = luaL_checkint(L,2);
int len = luaL_checkint(L,3);
@@ -305,7 +305,7 @@ int ByteArray_register(lua_State* L) {
* Tvb & TvbRange
*
* a Tvb represents a tvbuff_t in Lua.
- * a TvbRange represents a range in a tvb (tvb,offset,lenght) it's main purpose is to do bounds checking,
+ * a TvbRange represents a range in a tvb (tvb,offset,length) it's main purpose is to do bounds checking,
* it helps too simplifing argument passing to Tree. In wireshark terms this is worthless nothing
* not already done by the TVB itself. In lua's terms is necessary to avoid abusing TRY{}CATCH(){}
* via preemptive bounds checking.
@@ -415,7 +415,7 @@ WSLUA_METHOD Tvb_len(lua_State* L) {
if (!tvb) return 0;
lua_pushnumber(L,tvb_length(tvb));
- WSLUA_RETURN(1); /* the lenght of the Tvb. */
+ WSLUA_RETURN(1); /* the length of the Tvb. */
}
WSLUA_METHOD Tvb_offset(lua_State* L) {
@@ -439,7 +439,7 @@ WSLUA_METAMETHOD Tvb__call(lua_State* L) {
WSLUA_CLASS_DEFINE(TvbRange,FAIL_ON_NULL("expired tvbrange"),NOP);
/*
* a TvbRange represents an usable range of a Tvb and is used to extract data from the Tvb that generated it
- * TvbRanges are created by calling a tvb (e.g. tvb(offset,lenght)). If the TvbRange span is outside the Tvb's range the creation will cause a runtime error.
+ * TvbRanges are created by calling a tvb (e.g. tvb(offset,length)). If the TvbRange span is outside the Tvb's range the creation will cause a runtime error.
*/
TvbRange new_TvbRange(lua_State* L, tvbuff_t* tvb, int offset, int len) {
@@ -510,7 +510,7 @@ int Tvb_register(lua_State* L) {
*/
static int TvbRange_get_index(lua_State* L) {
/* WSLUA_ATTRIBUTE TvbRange_tvb RO The Tvb from which this TvbRange was generated */
- /* WSLUA_ATTRIBUTE TvbRange_len RW The lenght (in octets) of this TvbRange */
+ /* WSLUA_ATTRIBUTE TvbRange_len RW The length (in octets) of this TvbRange */
/* WSLUA_ATTRIBUTE TvbRange_offset RW The offset (in octets) of this TvbRange */
TvbRange tvbr = checkTvbRange(L,1);