diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 1997-11-17 14:36:49 -0500 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 1997-11-17 14:36:49 -0500 |
commit | e47cfd5646f55de9688ff42df3055fd9c09b503f (patch) | |
tree | aab6f3c275e0f2ef58110654e4d87e5bc6676130 /WWW/Library/Implementation/HTFTP.c | |
parent | b63d287c6f3e67f8574ca2155c661288bc7dcd05 (diff) | |
download | lynx-snapshots-e47cfd5646f55de9688ff42df3055fd9c09b503f.tar.gz |
snapshot of project "lynx", label v2-7-1ac_0-95
Diffstat (limited to 'WWW/Library/Implementation/HTFTP.c')
-rw-r--r-- | WWW/Library/Implementation/HTFTP.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/WWW/Library/Implementation/HTFTP.c b/WWW/Library/Implementation/HTFTP.c index 0e5b801b..701490e9 100644 --- a/WWW/Library/Implementation/HTFTP.c +++ b/WWW/Library/Implementation/HTFTP.c @@ -759,21 +759,21 @@ PRIVATE int get_connection ARGS2( } server_type = GENERIC_SERVER; /* reset */ if (status == 2) { /* Send username */ - { - char *cp; /* look at greeting text */ - if (strlen(response_text) > 4) { - if ((cp = strstr(response_text, " awaits your command")) || - (cp = strstr(response_text, " ready."))) { - *cp = '\0'; - } - cp = response_text + 4; - if (!strncasecomp(cp, "NetPresenz", 10)) - server_type = NETPRESENZ_SERVER; - } else { - cp = response_text; + char *cp; /* look at greeting text */ + + if (strlen(response_text) > 4) { + if ((cp = strstr(response_text, " awaits your command")) || + (cp = strstr(response_text, " ready."))) { + *cp = '\0'; } - StrAllocCopy(anchor->server, cp); + cp = response_text + 4; + if (!strncasecomp(cp, "NetPresenz", 10)) + server_type = NETPRESENZ_SERVER; + } else { + cp = response_text; } + StrAllocCopy(anchor->server, cp); + if (username && *username) { command = (char*)malloc(10+strlen(username)+2+1); if (command == NULL) @@ -2232,7 +2232,7 @@ PRIVATE EntryInfo * parse_dir_entry ARGS2( return(entry_info); } /* parse_dir_entry */ -PUBLIC int compare_EntryInfo_structs ARGS2( +PRIVATE int compare_EntryInfo_structs ARGS2( EntryInfo *, entry1, EntryInfo *, entry2) { |