about summary refs log tree commit diff stats
path: root/WWW/Library/Implementation/HTWAIS.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2000-02-15 04:10:19 -0500
committerThomas E. Dickey <dickey@invisible-island.net>2000-02-15 04:10:19 -0500
commit383b3f2ddbc1e2b64996958c1d9d944979fd190b (patch)
tree5c448e24f1b69593713b31529d1bdedf39a22a9d /WWW/Library/Implementation/HTWAIS.c
parentd61bc4e56055c372ab0b8d027f376c2f4a2ecfff (diff)
downloadlynx-snapshots-383b3f2ddbc1e2b64996958c1d9d944979fd190b.tar.gz
snapshot of project "lynx", label v2-8-3dev_19
Diffstat (limited to 'WWW/Library/Implementation/HTWAIS.c')
-rw-r--r--WWW/Library/Implementation/HTWAIS.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/WWW/Library/Implementation/HTWAIS.c b/WWW/Library/Implementation/HTWAIS.c
index 52e613e7..92a8b3b0 100644
--- a/WWW/Library/Implementation/HTWAIS.c
+++ b/WWW/Library/Implementation/HTWAIS.c
@@ -75,6 +75,7 @@
 /*			FROM WWW
 **			--------
 */
+#include <LYUtils.h>
 #include <LYLeaks.h>
 
 #define DIRECTORY "/cnidr.org:210/directory-of-servers"
@@ -663,7 +664,7 @@ PUBLIC int HTLoadWAIS ARGS4(
     }
     if (names[0] == '/') {
 	server_name = names+1;
-	if (as_gate =(*server_name == '/'))
+	if ((as_gate =(*server_name == '/')) != 0)
 	    server_name++;	/* Accept one or two */
 	www_database = strchr(server_name,'/');
 	if (www_database) {
@@ -816,7 +817,8 @@ PUBLIC int HTLoadWAIS ARGS4(
 	HTStructured * target;
 
 	strncpy(keywords, key, MAX_KEYWORDS_LENGTH);
-	while(p=strchr(keywords, '+')) *p = ' ';
+	while ((p = strchr(keywords, '+')) != 0)
+	    *p = ' ';
 
 	/*
 	**  Send advance title to get something fast to the other end.