]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
fix data types
authorAlan T. DeKok <aland@freeradius.org>
Fri, 15 Jan 2021 16:42:56 +0000 (11:42 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 15 Jan 2021 16:42:56 +0000 (11:42 -0500)
src/modules/rlm_unpack/rlm_unpack.c

index ca8f8cb3149d2aed2b3beebb81e1481cc0ea23a9..787ca92421f7a79ba5eea22b8747d7b57b98f3c5 100644 (file)
@@ -66,9 +66,8 @@ static ssize_t unpack_xlat(UNUSED TALLOC_CTX *ctx, char **out, size_t outlen,
        bool tainted = false;
        char *data_name, *data_size, *data_type;
        char *p;
-       size_t len, input_len;
+       size_t len, input_len, offset;
        ssize_t slen;
-       int offset;
        fr_type_t type;
        fr_dict_attr_t const *da;
        fr_pair_t *vp;;
@@ -157,7 +156,7 @@ static ssize_t unpack_xlat(UNUSED TALLOC_CTX *ctx, char **out, size_t outlen,
        }
 
        if (offset >= input_len) {
-               REDEBUG("unpack offset %d is larger than input data length %zd", offset, input_len);
+               REDEBUG("unpack offset %zu is larger than input data length %zu", offset, input_len);
                goto nothing;
        }