Skip to contentSkip to conversation

ALSA: avoid 'bool' as variable name

PATCH Applied Arnd Bergmann 2 participants 2 messages Feb 16, 2024 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ALSA: avoid 'bool' as variable name

From: Arnd Bergmann <[email protected]>

In modern C versions, 'bool' is a keyword that cannot be used as a variable name, so change this instance use something else, and change the type to bool instead.

---
 sound/core/seq/oss/seq_oss_device.h | 2 +-
 sound/core/seq/oss/seq_oss_init.c   | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
sound/core/seq/oss/seq_oss_device.h +1 -1
index 6c2c4fb9b753..f0e964b19af7 100644
@@ -163,6 +163,6 @@ snd_seq_oss_fill_addr(struct seq_oss_devinfo *dp, struct snd_seq_event *ev,
 
 
 /* misc. functions for proc interface */
-char *enabled_str(int bool);
+char *enabled_str(bool b);
 
 #endif /* __SEQ_OSS_DEVICE_H */
sound/core/seq/oss/seq_oss_init.c +2 -2
index 42d4e7535a82..76bf41c26acd 100644
@@ -455,9 +455,9 @@ snd_seq_oss_reset(struct seq_oss_devinfo *dp)
  * misc. functions for proc interface
  */
 char *
-enabled_str(int bool)
+enabled_str(bool b)
 {
-	return bool ? "enabled" : "disabled";
+	return b ? "enabled" : "disabled";
 }
 
 static const char *
Signature · 1 line
2.39.2