]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Mark command_encode_dns_labels as nonnull
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 11 Nov 2021 21:05:18 +0000 (15:05 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 11 Nov 2021 21:53:42 +0000 (15:53 -0600)
src/bin/unit_test_attribute.c

index 6583a0a3670d8ce9f56638c33f38b456575e8709..ab96824307df5caf2d137f6c926cddd1663b4c4f 100644 (file)
@@ -1537,8 +1537,9 @@ static size_t command_dictionary_dump(command_result_t *result, command_file_ctx
        RETURN_OK(data_used);
 }
 
-static size_t command_encode_dns_label(command_result_t *result, command_file_ctx_t *cc,
-                                      char *data, UNUSED size_t data_used, char *in, UNUSED size_t inlen)
+static CC_HINT(nonnull)
+size_t command_encode_dns_label(command_result_t *result, command_file_ctx_t *cc,
+                               char *data, UNUSED size_t data_used, char *in, UNUSED size_t inlen)
 {
        size_t          need;
        ssize_t         ret;