summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2007-11-16 05:46:25 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-06-18 00:27:13 +0200
commit0a9db9be1c17787ef586de7c1363b675a0a4d248 (patch)
treedb0647360194766944fb2ed3d012a51bc966a78e
parente7a586b1dc6b043a68e72dcf6871addf2f303857 (diff)
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.
-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;
}