mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
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>
This commit is contained in:
parent
471864ac8a
commit
ff16cbc4dc
2 changed files with 3 additions and 3 deletions
|
@ -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 */
|
||||
|
|
|
@ -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 *
|
||||
|
|
Loading…
Add table
Reference in a new issue