[gnutls-devel] GnuTLS | Use streq and memeq from Gnulib (#1829)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Fri Mar 27 03:53:24 CET 2026



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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20260327/293db12e/attachment.html>


More information about the Gnutls-devel mailing list