about summary refs log tree commit diff stats
path: root/WWW
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>1998-03-06 19:00:00 -0500
committerThomas E. Dickey <dickey@invisible-island.net>1998-03-06 19:00:00 -0500
commit373bfbe1a5d037b9eb53f512a3332746e10607a2 (patch)
tree6017109a8287677f6073c384ade5783cdcec5266 /WWW
parente9b52cbfe84bc9e13568e784836c9e0b4b1e0913 (diff)
downloadlynx-snapshots-373bfbe1a5d037b9eb53f512a3332746e10607a2.tar.gz
snapshot of project "lynx", label v2-8pre_4
Diffstat (limited to 'WWW')
-rw-r--r--WWW/Library/Implementation/HTDOS.c13
-rw-r--r--WWW/Library/Implementation/HTFile.c1
-rw-r--r--WWW/Library/Implementation/HTUtils.h4
3 files changed, 7 insertions, 11 deletions
diff --git a/WWW/Library/Implementation/HTDOS.c b/WWW/Library/Implementation/HTDOS.c
index ce866bfe..5e22915b 100644
--- a/WWW/Library/Implementation/HTDOS.c
+++ b/WWW/Library/Implementation/HTDOS.c
@@ -4,7 +4,7 @@
 
 #include <mem.h>
 #include <dos.h>
-#include "htstring.h"
+
 
 /* PUBLIC							HTDOS_wwwName()
 **		CONVERTS DOS Name into WWW Name
@@ -59,7 +59,6 @@ char * HTDOS_name(char *wwwname)
 	int joe;
 
 	memset(cp_url, 0, 1023);
-/*	strset(cp_url,0);                 */
 	sprintf(cp_url, "%s",wwwname);
 
 	for(joe = 0; cp_url[joe] != '\0'; joe++)	{
@@ -82,16 +81,14 @@ char * HTDOS_name(char *wwwname)
 		printf("\n\n%s = i%\n\n",cp_url,strlen(cp_url));
 		sleep(5);
 #endif
-      strcpy(wwwname, cp_url);
-      return(wwwname); /* return(cp_url); */
+		strcpy(wwwname, cp_url);
+		return(wwwname); /* return(cp_url); */
 	} else {
 #if 0
 		printf("\n\n%s = %i\n\n",cp_url+1,strlen(cp_url));
 		sleep(5);
 #endif
-      strcpy(wwwname, cp_url+1);
-      return(wwwname); /* return(cp_url+1);  */
+		strcpy(wwwname, cp_url+1);
+		return(wwwname); /* return(cp_url+1);  */
 	}
 }
-
-
diff --git a/WWW/Library/Implementation/HTFile.c b/WWW/Library/Implementation/HTFile.c
index 9a2b8ec8..89a93d14 100644
--- a/WWW/Library/Implementation/HTFile.c
+++ b/WWW/Library/Implementation/HTFile.c
@@ -26,7 +26,6 @@
 #endif /* !VMS */
 
 #ifdef DOSPATH
-#define HAVE_READDIR
 #define HAVE_READDIR 1
 #include <dirent.h>
 #define USE_DIRENT
diff --git a/WWW/Library/Implementation/HTUtils.h b/WWW/Library/Implementation/HTUtils.h
index 63025052..21128bb9 100644
--- a/WWW/Library/Implementation/HTUtils.h
+++ b/WWW/Library/Implementation/HTUtils.h
@@ -424,8 +424,8 @@ Upper- and Lowercase macros
 
 #ifndef TOLOWER
   /* Pyramid and Mips can't uppercase non-alpha */
-#define TOLOWER(c) (isupper((unsigned char)c) ? tolower((unsigned char)c) : (c))
-#define TOUPPER(c) (islower((unsigned char)c) ? toupper((unsigned char)c) : (c))
+#define TOLOWER(c) (isupper((unsigned char)c) ? tolower((unsigned char)c) : ((unsigned char)c))
+#define TOUPPER(c) (islower((unsigned char)c) ? toupper((unsigned char)c) : ((unsigned char)c))
 #endif /* TOLOWER */
 
 /*