changeset 1215:c56c0565afd5

[project @ 1995-04-06 05:12:20 by jwe]
author jwe
date Thu, 06 Apr 1995 05:13:57 +0000
parents 0bf4d2b7def4
children 0ffb52e268d7
files src/input.cc src/tc-rep.cc src/utils.cc
diffstat 3 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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;
--- 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 << "\"";
       }
--- 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;