]> asedeno.scripts.mit.edu Git - linux.git/commit
staging: speakup: i18n.c: Change return type from int to bool
authorNarcisa Ana Maria Vasile <narcisaanamaria12@gmail.com>
Thu, 9 Mar 2017 22:53:23 +0000 (00:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 12 Mar 2017 14:27:45 +0000 (15:27 +0100)
commiteaeab71f27c485e8940782304158f41c3fff7139
tree5cfa1ff0a7e9ba15ca85f6a01661085229bf91a9
parent37c002299c14f4d2cd49c42fc5cc2f8c77207ae2
staging: speakup: i18n.c: Change return type from int to bool

The possible return values (0 or 1) for compare_specifiers
and fmt_validate represent whether a condition holds or not, so
conceptually, they are booleans.

Update documentation for these two functions.

Change type of variable 'still_comparing' from int to bool too,
inside fmt_validate, because it is intended to hold truth values
as well.

Signed-off-by: Narcisa Ana Maria Vasile <narcisaanamaria12@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/speakup/i18n.c