GnuTLS | Use streq and memeq from Gnulib (#1829)

Read-only notification of GnuTLS library development activities <[email protected]> Fri, 27 Mar 2026 02:53:24 +0000
Newsgroups gmane.comp.encryption.gpg.gnutls.devel
Message-ID <[email protected]>

Daiki Ueno created an issue: https://gitlab.com/gnutls/gnutls/-/work_items/1829



When using `strcmp` and `memcmp` for checking equality, one would write `strcmp(...) == 0` or `!strcmp(...)`. This is error prone, especially when negating a condition with multiple comparisons with De Morgan's law.

Gnulib provides functions `streq` and `memeq` to avoid that. Let's switch to them also update our contribution guide to suggest that.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/work_items/1829
You're receiving this email because of your account on gitlab.com. Unsubscribe from this thread: https://gitlab.com/-/sent_notifications/4-6mhrdju0awj2syq8zz8nmotyo-a84t7/unsubscribe | Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help

_______________________________________________
Gnutls-devel mailing list
[email protected]
http://lists.gnupg.org/mailman/listinfo/gnutls-devel