diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-05-24 16:25:58 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-05-25 13:47:47 +0200 |
commit | 2367bdcfc90198620ea2b905f450fc514fd93d93 (patch) | |
tree | e50d5306ce612d194363f87d1bfa3b3d0441f89f /src/fundamental/string-util-fundamental.c | |
parent | basic/string-util: tweak strverscmp_improved() for some corner cases (diff) | |
download | systemd-2367bdcfc90198620ea2b905f450fc514fd93d93.tar.xz systemd-2367bdcfc90198620ea2b905f450fc514fd93d93.zip |
docs/BLS: describe version comparisons
Fixes #23346.
Diffstat (limited to 'src/fundamental/string-util-fundamental.c')
-rw-r--r-- | src/fundamental/string-util-fundamental.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fundamental/string-util-fundamental.c b/src/fundamental/string-util-fundamental.c index 73abc2f8c8..169568e244 100644 --- a/src/fundamental/string-util-fundamental.c +++ b/src/fundamental/string-util-fundamental.c @@ -150,7 +150,7 @@ sd_int strverscmp_improved(const sd_char *a, const sd_char *b) { } /* If at least one string reaches the end, then longer is newer. - * Note that except for '~' prefixed segments, a string has more segments is newer. + * Note that except for '~' prefixed segments, a string which has more segments is newer. * So, this check must be after the '~' check. */ if (*a == '\0' || *b == '\0') return CMP(*a, *b); @@ -233,7 +233,7 @@ sd_int strverscmp_improved(const sd_char *a, const sd_char *b) { return r; } - /* The current segments are equivalent. Let's compare the next one. */ + /* The current segments are equivalent. Let's move to the next one. */ a = aa; b = bb; } |