diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:14:53 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:14:53 +0000 |
commit | a86c5f7cae7ec9a3398300555a0b644689d946a1 (patch) | |
tree | 39fe4b107c71174fd1e8a8ceb9a4d2aa14116248 /epan/media_params.c | |
parent | Releasing progress-linux version 4.2.6-1~progress7.99u1. (diff) | |
download | wireshark-a86c5f7cae7ec9a3398300555a0b644689d946a1.tar.xz wireshark-a86c5f7cae7ec9a3398300555a0b644689d946a1.zip |
Merging upstream version 4.4.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'epan/media_params.c')
-rw-r--r-- | epan/media_params.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/epan/media_params.c b/epan/media_params.c index ae310df6..113a9392 100644 --- a/epan/media_params.c +++ b/epan/media_params.c @@ -21,8 +21,8 @@ #include <epan/media_params.h> static const char * -ws_get_next_media_type_parameter(const char *pos, gsize *retnamelen, - const char **retvalue, gsize *retvaluelen, +ws_get_next_media_type_parameter(const char *pos, size_t *retnamelen, + const char **retvalue, size_t *retvaluelen, const char **nextp) { const char *p, *namep, *valuep; @@ -43,7 +43,7 @@ ws_get_next_media_type_parameter(const char *pos, gsize *retnamelen, beginning of parameter value), or ';' (end of parameter). */ while ((c = *p) != '\0' && c != '=' && c != ';') p++; - *retnamelen = (gsize) (p - namep); + *retnamelen = (size_t) (p - namep); if (c == '\0') { /* End of string, so end of parameter, no parameter value */ if (retvalue != NULL) @@ -78,7 +78,7 @@ ws_get_next_media_type_parameter(const char *pos, gsize *retnamelen, /* End-of-string. We're done. (XXX - this is an error.) */ if (retvaluelen != NULL) { - *retvaluelen = (gsize) (p - valuep); + *retvaluelen = (size_t) (p - valuep); } *nextp = p; return namep; @@ -117,14 +117,14 @@ ws_get_next_media_type_parameter(const char *pos, gsize *retnamelen, if (c == '\0') { /* End of string, so end of parameter */ if (retvaluelen != NULL) { - *retvaluelen = (gsize) (p - valuep); + *retvaluelen = (size_t) (p - valuep); } *nextp = p; return namep; } /* End of parameter; point past the terminating ';' */ if (retvaluelen != NULL) { - *retvaluelen = (gsize) (p - valuep); + *retvaluelen = (size_t) (p - valuep); } *nextp = p + 1; return namep; @@ -135,16 +135,16 @@ ws_find_media_type_parameter(wmem_allocator_t *scope, const char *parameters, co { const char *p, *name, *value; char c; - gsize keylen, namelen, valuelen; + size_t keylen, namelen, valuelen; char *valuestr, *vp; if (parameters == NULL || key == NULL) /* we won't be able to find anything */ return NULL; - keylen = (gsize) strlen(key); + keylen = (size_t) strlen(key); if (keylen == 0) { - /* There's no parameter name to searh for */ + /* There's no parameter name to search for */ return NULL; } p = parameters; |