ssb: Silence some persistent broadcast noise.
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 20m40s

This commit is contained in:
2025-01-31 20:45:35 -05:00
parent 192a81ede7
commit f1a2c5ae8e
2 changed files with 11 additions and 7 deletions

View File

@ -785,6 +785,10 @@ typedef struct _http_file_t
static bool _ends_with(const char* a, const char* suffix)
{
if (!a || !suffix)
{
return false;
}
size_t alen = strlen(a);
size_t suffixlen = strlen(suffix);
return alen >= suffixlen && strcmp(a + alen - suffixlen, suffix) == 0;