summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/cpu.c2
-rw-r--r--core/hostservices.c2
-rw-r--r--libc/stdlib/strtol.c2
-rw-r--r--libc/stdlib/strtoul.c2
-rw-r--r--libpore/pore_inline_assembler.c4
5 files changed, 6 insertions, 6 deletions
diff --git a/core/cpu.c b/core/cpu.c
index bfede549..4c97ab98 100644
--- a/core/cpu.c
+++ b/core/cpu.c
@@ -449,7 +449,7 @@ void init_all_cpus(void)
t->primary = t;
t->node = cpu;
t->chip_id = chip_id;
- t->icp_regs = 0; /* Will be set later */
+ t->icp_regs = NULL; /* Will be set later */
/* Add associativity properties */
add_core_associativity(t);
diff --git a/core/hostservices.c b/core/hostservices.c
index 5cc1a28c..22d34e42 100644
--- a/core/hostservices.c
+++ b/core/hostservices.c
@@ -901,7 +901,7 @@ bool hservices_init(void)
/* We enter at 0x100 into the image. */
fdesc.addr = code + 0x100;
/* It doesn't care about TOC */
- fdesc.toc = 0;
+ fdesc.toc = NULL;
hbrt_init = (void *)&fdesc;
diff --git a/libc/stdlib/strtol.c b/libc/stdlib/strtol.c
index e6d4da36..c7c52af0 100644
--- a/libc/stdlib/strtol.c
+++ b/libc/stdlib/strtol.c
@@ -19,7 +19,7 @@ long int strtol(const char *S, char **PTR,int BASE)
short int digit;
// *PTR is S, unless PTR is NULL, in which case i override it with my own ptr
char* ptr;
- if (PTR == 0)
+ if (PTR == NULL)
{
//override
PTR = &ptr;
diff --git a/libc/stdlib/strtoul.c b/libc/stdlib/strtoul.c
index 8472668f..e6e63aee 100644
--- a/libc/stdlib/strtoul.c
+++ b/libc/stdlib/strtoul.c
@@ -18,7 +18,7 @@ unsigned long int strtoul(const char *S, char **PTR,int BASE)
short int digit;
// *PTR is S, unless PTR is NULL, in which case i override it with my own ptr
char* ptr;
- if (PTR == 0)
+ if (PTR == NULL)
{
//override
PTR = &ptr;
diff --git a/libpore/pore_inline_assembler.c b/libpore/pore_inline_assembler.c
index 470b2fa4..44a93db8 100644
--- a/libpore/pore_inline_assembler.c
+++ b/libpore/pore_inline_assembler.c
@@ -747,7 +747,7 @@ pore_inline_context_create(PoreInlineContext *ctx,
PORE_INLINE_8_BYTE_DATA |
PORE_INLINE_DISASSEMBLE_UNKNOWN;
- if ((ctx == 0) || ((memory == 0) && (size != 0)) ||
+ if ((ctx == NULL) || ((memory == NULL) && (size != 0)) ||
((options & ~valid_options) != 0)) {
rc = PORE_INLINE_INVALID_PARAMETER;
} else {
@@ -759,7 +759,7 @@ pore_inline_context_create(PoreInlineContext *ctx,
pore_inline_context_reset(ctx);
}
- if (ctx != 0) {
+ if (ctx != NULL) {
ctx->error = rc;
if (rc) {
ctx->size = 0; /* Effectively prevents using the ctx */
OpenPOWER on IntegriCloud