mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
[PATCH] Generic boolean
This patch defines: * a generic boolean-type, named 'bool' * aliases to 0 and 1, named 'false' and 'true' Removing colliding definitions of 'bool', 'false' and 'true'. Signed-off-by: Richard Knutsson <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
be5b7a8987
commit
6e21828743
6 changed files with 10 additions and 10 deletions
|
|
@ -71,7 +71,7 @@
|
|||
Define a Boolean data type.
|
||||
*/
|
||||
|
||||
typedef enum { false, true } __attribute__ ((packed)) boolean;
|
||||
typedef bool boolean;
|
||||
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -50,10 +50,6 @@
|
|||
/***
|
||||
* Image defines
|
||||
***/
|
||||
#ifndef true
|
||||
#define true 1
|
||||
#define false 0
|
||||
#endif
|
||||
|
||||
/* Misc constants */
|
||||
#define ALLOW_CORRUPT 0 /* Causes collater to discard checksum */
|
||||
|
|
|
|||
|
|
@ -110,7 +110,6 @@ static char version[] __initdata =
|
|||
* DGRS include files
|
||||
*/
|
||||
typedef unsigned char uchar;
|
||||
typedef unsigned int bool;
|
||||
#define vol volatile
|
||||
|
||||
#include "dgrs.h"
|
||||
|
|
|
|||
|
|
@ -237,10 +237,7 @@ enum BusLogic_BIOS_DiskGeometryTranslation {
|
|||
Define a Boolean data type.
|
||||
*/
|
||||
|
||||
typedef enum {
|
||||
false,
|
||||
true
|
||||
} PACKED boolean;
|
||||
typedef bool boolean;
|
||||
|
||||
/*
|
||||
Define a 10^18 Statistics Byte Counter data type.
|
||||
|
|
|
|||
Loading…
Reference in a new issue