diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 1997-09-19 01:14:00 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 1997-09-19 01:14:00 -0400 |
commit | 443226a5ffcf805f6ab3ccbcc2a6b4802793b07d (patch) | |
tree | b6f0dca30c155e9ea2fa8ec78271fb44744b05ce /WWW/Library/Implementation/HTFTP.c | |
parent | d2e46bbfcbedb43938b866f4ad9e8bf1d4084b7c (diff) | |
download | lynx-snapshots-443226a5ffcf805f6ab3ccbcc2a6b4802793b07d.tar.gz |
snapshot of project "lynx", label v2-7-1ac_0-69
Diffstat (limited to 'WWW/Library/Implementation/HTFTP.c')
-rw-r--r-- | WWW/Library/Implementation/HTFTP.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/WWW/Library/Implementation/HTFTP.c b/WWW/Library/Implementation/HTFTP.c index f7a9a74f..3cf9dd3d 100644 --- a/WWW/Library/Implementation/HTFTP.c +++ b/WWW/Library/Implementation/HTFTP.c @@ -237,14 +237,15 @@ PUBLIC char * HTMake_VMS_name ARGS2( char *second; /* 2nd slash */ char *last; /* last slash */ - char * hostname = (char *)HTHostName(); + CONST char * hostname = HTHostName(); if (!filename || !nodename) outofmem(__FILE__, "HTVMSname"); strcpy(filename, fn); strcpy(nodename, ""); /* On same node? Yes if node names match */ if (strncmp(nn, "localhost", 9)) { - char *p, *q; + CONST char *p; + char *q; for (p = hostname, q = (char *)nn; *p && *p != '.' && *q && *q != '.'; p++, q++){ if (TOUPPER(*p) != TOUPPER(*q)) { @@ -757,7 +758,7 @@ PRIVATE int get_connection ARGS1( * Create and send a mail address as the password. - FM */ char *user = NULL; - char *host = NULL; + CONST char *host = NULL; char * cp; if (personal_mail_address && *personal_mail_address) { @@ -770,7 +771,7 @@ PRIVATE int get_connection ARGS1( *cp++ = '\0'; host = cp; } else { - host = (char *)HTHostName(); + host = HTHostName(); } } else { /* @@ -780,7 +781,7 @@ PRIVATE int get_connection ARGS1( StrAllocCopy(user, cp); else StrAllocCopy(user, "WWWuser"); - host = (char *)HTHostName(); + host = HTHostName(); } /* |