summaryrefslogtreecommitdiffstats
path: root/sound/core/seq
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2024-02-16 14:02:04 +0100
committerTakashi Iwai <tiwai@suse.de>2024-02-16 14:47:13 +0100
commitff16cbc4dc3494d02e625c76342bcdea54cfb9a4 (patch)
treea48356a85d6c7c6cbdaee3b878fb778e16eeee8f /sound/core/seq
parent471864ac8a3274106e0bf3a3e2119c282b76c062 (diff)
downloadlinux-stable-ff16cbc4dc3494d02e625c76342bcdea54cfb9a4.tar.gz
linux-stable-ff16cbc4dc3494d02e625c76342bcdea54cfb9a4.tar.bz2
linux-stable-ff16cbc4dc3494d02e625c76342bcdea54cfb9a4.zip
ALSA: avoid 'bool' as variable name
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. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Link: https://lore.kernel.org/r/20240216130211.3828455-1-arnd@kernel.org Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/seq')
-rw-r--r--sound/core/seq/oss/seq_oss_device.h2
-rw-r--r--sound/core/seq/oss/seq_oss_init.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/sound/core/seq/oss/seq_oss_device.h b/sound/core/seq/oss/seq_oss_device.h
index 6c2c4fb9b753..f0e964b19af7 100644
--- a/sound/core/seq/oss/seq_oss_device.h
+++ b/sound/core/seq/oss/seq_oss_device.h
@@ -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 */
diff --git a/sound/core/seq/oss/seq_oss_init.c b/sound/core/seq/oss/seq_oss_init.c
index 42d4e7535a82..76bf41c26acd 100644
--- a/sound/core/seq/oss/seq_oss_init.c
+++ b/sound/core/seq/oss/seq_oss_init.c
@@ -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 *