summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--ddb/db_examine.c2
-rw-r--r--ddb/db_sym.c6
3 files changed, 10 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 2524fac..55fbd23 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
+
+ * ddb/db_examine.c (db_strcpy): Add extra parentheses around
+ assignment used as boolean.
+ * ddb/db_sym.c (db_qualify, db_lookup): Likewise.
+
2007-11-08 Thomas Schwinge <tschwinge@gnu.org>
* doc/mach.texi: Do the copyright and licensing things as suggested by
diff --git a/ddb/db_examine.c b/ddb/db_examine.c
index 889a5b0..2df261f 100644
--- a/ddb/db_examine.c
+++ b/ddb/db_examine.c
@@ -340,7 +340,7 @@ db_strcpy(dst, src)
register char *dst;
register char *src;
{
- while (*dst++ = *src++)
+ while ((*dst++ = *src++))
;
}
diff --git a/ddb/db_sym.c b/ddb/db_sym.c
index be839fd..6bf8ec2 100644
--- a/ddb/db_sym.c
+++ b/ddb/db_sym.c
@@ -98,11 +98,11 @@ db_qualify(symname, symtabname)
register char *s;
s = tmp;
- while (*s++ = *symtabname++) {
+ while ((*s++ = *symtabname++)) {
}
s[-1] = ':';
*s++ = ':';
- while (*s++ = *symname++) {
+ while ((*s++ = *symname++)) {
}
return tmp;
}
@@ -173,7 +173,7 @@ db_lookup(symstr)
* Return on first match.
*/
for (i = symtab_start; i < symtab_end; i++) {
- if (sp = X_db_lookup(&db_symtabs[i], symstr)) {
+ if ((sp = X_db_lookup(&db_symtabs[i], symstr))) {
db_last_symtab = &db_symtabs[i];
return sp;
}