summaryrefslogtreecommitdiff
path: root/sparc-dis.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-07-31 21:16:51 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-07-31 21:16:51 +0000
commit660f11be541813be5f09fbaf44d8e7c6d5a5bbfe (patch)
tree1d133bdfc69d11fe81e769825adf3f680ee2f91e /sparc-dis.c
parent2e29bd04786003561303dcad940b38afe790fb9b (diff)
Fix Sparse warnings: "Using plain integer as NULL pointer"
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'sparc-dis.c')
-rw-r--r--sparc-dis.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sparc-dis.c b/sparc-dis.c
index a71404fe6e..53c8c9024d 100644
--- a/sparc-dis.c
+++ b/sparc-dis.c
@@ -2115,7 +2115,7 @@ static const arg asi_table_v8[] =
{ 0x40, "#ASI_M_VIKING_TMP1" },
{ 0x41, "#ASI_M_VIKING_TMP2" },
{ 0x4c, "#ASI_M_ACTION" },
- { 0, 0 }
+ { 0, NULL }
};
static const arg asi_table_v9[] =
@@ -2155,7 +2155,7 @@ static const arg asi_table_v9[] =
/* These are UltraSPARC extensions. */
/* FIXME: There are dozens of them. Not sure we want them all.
Most are for kernel building but some are for vis type stuff. */
- { 0, 0 }
+ { 0, NULL }
};
/* Return the name for ASI value VALUE or NULL if not found. */
@@ -2183,7 +2183,7 @@ static const arg membar_table[] =
{ 0x04, "#LoadStore" },
{ 0x02, "#StoreLoad" },
{ 0x01, "#LoadLoad" },
- { 0, 0 }
+ { 0, NULL }
};
/* Return the name for membar value VALUE or NULL if not found. */
@@ -2204,7 +2204,7 @@ static const arg prefetch_table[] =
{ 3, "#one_write" },
{ 4, "#page" },
{ 16, "#invalidate" },
- { 0, 0 }
+ { 0, NULL }
};
/* Return the name for prefetch value VALUE or NULL if not found. */
@@ -2226,7 +2226,7 @@ static const arg sparclet_cpreg_table[] =
{ 4, "%ccsr2" },
{ 5, "%cccrr" },
{ 6, "%ccrstr" },
- { 0, 0 }
+ { 0, NULL }
};
/* Return the name for sparclet cpreg value VALUE or NULL if not found. */
@@ -2770,11 +2770,11 @@ print_insn_sparc (bfd_vma memaddr, disassemble_info *info)
imm_added_to_rs1 = 1;
if (X_RS1 (insn) != X_RD (insn)
- && strchr (opcode->args, 'r') != 0)
+ && strchr (opcode->args, 'r') != NULL)
/* Can't do simple format if source and dest are different. */
continue;
if (X_RS2 (insn) != X_RD (insn)
- && strchr (opcode->args, 'O') != 0)
+ && strchr (opcode->args, 'O') != NULL)
/* Can't do simple format if source and dest are different. */
continue;