summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-10-11 10:12:58 -0700
committerH. Peter Anvin <hpa@zytor.com>2007-10-11 10:12:58 -0700
commit51cbf4a1fabe0f7b2604e69f3cf5228dc2cbce2b (patch)
tree77e760b9a7144dddb0f8d3e4999e5ab6ccfbba55
parentf8ba53eb2a6dbccb642c66a914f628aacd36a509 (diff)
downloadnasm-51cbf4a1fabe0f7b2604e69f3cf5228dc2cbce2b.tar.gz
nasm-51cbf4a1fabe0f7b2604e69f3cf5228dc2cbce2b.tar.bz2
nasm-51cbf4a1fabe0f7b2604e69f3cf5228dc2cbce2b.zip
More "bool" fixes
A few more variables passed as pointers which are now defined as bool *.
-rw-r--r--output/outieee.c3
-rw-r--r--stdscan.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/output/outieee.c b/output/outieee.c
index e507726..6f35e57 100644
--- a/output/outieee.c
+++ b/output/outieee.c
@@ -669,7 +669,8 @@ static int32_t ieee_segment(char *name, int pass, int *bits)
return seghead->index;
} else {
struct ieeeSection *seg;
- int ieee_idx, attrs, rn_error;
+ int ieee_idx, attrs;
+ bool rn_error;
char *p;
/*
diff --git a/stdscan.c b/stdscan.c
index 64e7798..e06fb84 100644
--- a/stdscan.c
+++ b/stdscan.c
@@ -146,7 +146,7 @@ int stdscan(void *private_data, struct tokenval *tv)
return tv->t_type = TOKEN_NUM;
} else if (*stdscan_bufptr == '\'' || *stdscan_bufptr == '"') { /* a char constant */
char quote = *stdscan_bufptr++, *r;
- int rn_warn;
+ bool rn_warn;
r = tv->t_charptr = stdscan_bufptr;
while (*stdscan_bufptr && *stdscan_bufptr != quote)
stdscan_bufptr++;