]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ALSA: avoid 'bool' as variable name
authorArnd Bergmann <arnd@arndb.de>
Fri, 16 Feb 2024 13:02:04 +0000 (14:02 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 16 Feb 2024 13:47:13 +0000 (14:47 +0100)
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>
sound/core/seq/oss/seq_oss_device.h
sound/core/seq/oss/seq_oss_init.c

index 6c2c4fb9b753786784a967efe926c09a4f603d20..f0e964b19af7aea9122a8df915f6195644111552 100644 (file)
@@ -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 */
index 42d4e7535a820456b1f4f92fa4a12c81fa07e60d..76bf41c26acdad7b8e2d1b02ac50f8bba029b89a 100644 (file)
@@ -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 *