All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH BlueZ] client/telephony: Fix missing string.h include
@ 2026-10-30  9:09 Jacob Siverskog
  2026-10-30 15:21 ` [BlueZ] " bluez.test.bot
  0 siblings, 1 reply; 2+ messages in thread
From: Jacob Siverskog @ 2026-10-30  9:09 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Frédéric Danis, Jacob Siverskog

strcmp() is used without including string.h, which only builds because
some glib versions pull it in indirectly. With older glib:

  client/telephony.c:641:2: warning: implicit declaration of function
  'strcmp' [-Wimplicit-function-declaration]

Assisted-by: Claude:claude-opus-5-5
---
 client/telephony.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/client/telephony.c b/client/telephony.c
index 858c02c0b..1d6885fa6 100644
--- a/client/telephony.c
+++ b/client/telephony.c
@@ -14,6 +14,7 @@
 
 #define _GNU_SOURCE
 #include <stdlib.h>
+#include <string.h>
 
 #include <glib.h>
 
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-10-30 15:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-30  9:09 [PATCH BlueZ] client/telephony: Fix missing string.h include Jacob Siverskog
2026-10-30 15:21 ` [BlueZ] " bluez.test.bot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.