mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-01 22:58:40 -04:00
cosmetic: convert some function returns from int to bool
[Pekka Paalanen: change is_nullable_type() return value to bool.] Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
This commit is contained in:
parent
391820b0d6
commit
322cd6dded
2 changed files with 9 additions and 7 deletions
|
|
@ -21,6 +21,7 @@
|
|||
* OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
#include <string.h>
|
||||
|
|
@ -288,7 +289,7 @@ warn(struct location *loc, const char *msg, ...)
|
|||
va_end(ap);
|
||||
}
|
||||
|
||||
static int
|
||||
static bool
|
||||
is_nullable_type(struct arg *arg)
|
||||
{
|
||||
switch (arg->type) {
|
||||
|
|
@ -297,9 +298,9 @@ is_nullable_type(struct arg *arg)
|
|||
case OBJECT:
|
||||
case NEW_ID:
|
||||
case ARRAY:
|
||||
return 1;
|
||||
return true;
|
||||
default:
|
||||
return 0;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue