# HG changeset patch # User jwe # Date 797145237 0 # Node ID c56c0565afd57630fa61d5d72e4ea807c2615f33 # Parent 0bf4d2b7def4f4e2c71aa65eb905255ba8ecd379 [project @ 1995-04-06 05:12:20 by jwe] diff -r 0bf4d2b7def4 -r c56c0565afd5 src/input.cc --- a/src/input.cc Thu Apr 06 02:35:53 1995 +0000 +++ b/src/input.cc Thu Apr 06 05:13:57 1995 +0000 @@ -239,7 +239,7 @@ char *temp = 0; result[0] = 0; - while (c = *string++) + while ((c = *string++)) { if (c == '\\') { @@ -351,7 +351,8 @@ char *t_string; temp = strsave (host_name); - if (t_string = strchr (temp, '.')) + t_string = strchr (temp, '.'); + if (t_string); *t_string = '\0'; goto add_string; diff -r 0bf4d2b7def4 -r c56c0565afd5 src/tc-rep.cc --- a/src/tc-rep.cc Thu Apr 06 02:35:53 1995 +0000 +++ b/src/tc-rep.cc Thu Apr 06 05:13:57 1995 +0000 @@ -1863,7 +1863,7 @@ { os << "\""; char *s, *t = string; - while (s = undo_string_escape (*t++)) + while ((s = undo_string_escape (*t++))) os << s; os << "\""; } diff -r 0bf4d2b7def4 -r c56c0565afd5 src/utils.cc --- a/src/utils.cc Thu Apr 06 02:35:53 1995 +0000 +++ b/src/utils.cc Thu Apr 06 05:13:57 1995 +0000 @@ -802,7 +802,7 @@ ostrstream buf; char *t; - while (t = undo_string_escape (*s++)) + while ((t = undo_string_escape (*s++))) buf << t; buf << ends;