]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
define FR_SBUFF_IN_STR() as a shorthand for IN(foo, strlen(foo))
authorAlan T. DeKok <aland@freeradius.org>
Sun, 3 Aug 2025 15:12:30 +0000 (11:12 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 3 Aug 2025 15:12:30 +0000 (11:12 -0400)
src/lib/util/sbuff.h

index 7d898123c368eb9689f471d2433f6b510da124d2..e058dbcd6c6251933f636751425e8fe43373b03d 100644 (file)
@@ -560,6 +560,8 @@ do { \
        .is_const       = IS_CONST(char *, _start) \
 })
 
+#define FR_SBUFF_IN_STR(_start) FR_SBUFF_IN(_start, strlen(_start))
+
 /** Structure to encapsulate a thread local sbuff information
  *
  */