diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2024-04-03 14:10:08 +0200 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2024-04-05 11:40:44 +0200 |
commit | fcea2f174e235f12eb4d3ec58d35662afc567173 (patch) | |
tree | a938d7bfd50dab909c19aed326cfb0946c1ffdcc | |
parent | 2386c0f52d07ebc3dac1441124d3cd6099d18384 (diff) |
libnm-glib-aux: fix comments about UUID generation
Whether the length is supplied explicitly or implicitly (via -1), the
result is the same. Update the comment.
-rw-r--r-- | src/libnm-glib-aux/nm-uuid.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libnm-glib-aux/nm-uuid.c b/src/libnm-glib-aux/nm-uuid.c index ff13c8fb11..e39d2ea563 100644 --- a/src/libnm-glib-aux/nm-uuid.c +++ b/src/libnm-glib-aux/nm-uuid.c @@ -415,8 +415,7 @@ nm_uuid_generate_from_string_str(const char *s, * case the result is different from an empty array. * @len: if negative, @strv is a NULL terminated array. Otherwise, * it is the length of the strv array. In the latter case it may - * also contain NULL strings. The result hashes differently depending - * on whether we have a NULL terminated strv array or given length. + * also contain NULL strings. * * Returns a @uuid_type UUID based on the concatenated C strings. * It does not simply concatenate them, but also includes the @@ -478,7 +477,7 @@ nm_uuid_generate_from_strings_strv(NMUuidType uuid_type, slen = strlen(strv[0]) + 1u; s = strv[0]; } else { - /* We concatenate the NUL termiated string, including the NUL + /* We concatenate the NUL terminated string, including the NUL * character. This way, ("a","a"), ("aa"), ("aa","") all hash * differently. */ for (; strv[0]; strv++) |