diff options
Diffstat (limited to 'WWW/Library/Implementation')
-rw-r--r-- | WWW/Library/Implementation/HTFTP.c | 4 | ||||
-rw-r--r-- | WWW/Library/Implementation/HTFile.c | 14 | ||||
-rw-r--r-- | WWW/Library/Implementation/HTGopher.c | 6 |
3 files changed, 12 insertions, 12 deletions
diff --git a/WWW/Library/Implementation/HTFTP.c b/WWW/Library/Implementation/HTFTP.c index dbbafcdc..e2ac69b9 100644 --- a/WWW/Library/Implementation/HTFTP.c +++ b/WWW/Library/Implementation/HTFTP.c @@ -1,5 +1,5 @@ /* - * $LynxId: HTFTP.c,v 1.95 2010/09/22 00:53:07 tom Exp $ + * $LynxId: HTFTP.c,v 1.96 2010/09/23 09:29:36 tom Exp $ * * File Transfer Protocol (FTP) Client * for a WorldWideWeb browser @@ -946,7 +946,7 @@ static int get_connection(const char *arg, /* * Create and send a mail address as the password. - FM */ - char *the_address; + const char *the_address; char *user = NULL; const char *host = NULL; char *cp; diff --git a/WWW/Library/Implementation/HTFile.c b/WWW/Library/Implementation/HTFile.c index d1a006eb..0fdc6e95 100644 --- a/WWW/Library/Implementation/HTFile.c +++ b/WWW/Library/Implementation/HTFile.c @@ -1,5 +1,5 @@ /* - * $LynxId: HTFile.c,v 1.124 2010/09/22 00:12:36 tom Exp $ + * $LynxId: HTFile.c,v 1.125 2010/09/23 10:43:48 tom Exp $ * * File Access HTFile.c * =========== @@ -147,8 +147,8 @@ static const char *HTCacheRoot = "/WWW$SCRATCH"; /* Where to cache things */ static const char *HTCacheRoot = "/tmp/W3_Cache_"; /* Where to cache things */ #endif /* VMS */ -#define NO_SUFFIX "*" -#define UNKNOWN_SUFFIX "*.*" +static char s_no_suffix[] = "*"; +static char s_unknown_suffix[] = "*.*"; /* * Suffix registration. @@ -157,12 +157,12 @@ static HTList *HTSuffixes = 0; static HTSuffix no_suffix = { - NO_SUFFIX, NULL, NULL, NULL, 1.0 + s_no_suffix, NULL, NULL, NULL, 1.0 }; static HTSuffix unknown_suffix = { - UNKNOWN_SUFFIX, NULL, NULL, NULL, 1.0 + s_unknown_suffix, NULL, NULL, NULL, 1.0 }; /* To free up the suffixes at program exit. @@ -508,9 +508,9 @@ void HTSetSuffix5(const char *suffix, HTSuffix *suff; BOOL trivial_enc = (BOOL) IsUnityEncStr(encoding); - if (strcmp(suffix, NO_SUFFIX) == 0) + if (strcmp(suffix, s_no_suffix) == 0) suff = &no_suffix; - else if (strcmp(suffix, UNKNOWN_SUFFIX) == 0) + else if (strcmp(suffix, s_unknown_suffix) == 0) suff = &unknown_suffix; else { HTList *cur = HTSuffixes; diff --git a/WWW/Library/Implementation/HTGopher.c b/WWW/Library/Implementation/HTGopher.c index 3851d471..993251a4 100644 --- a/WWW/Library/Implementation/HTGopher.c +++ b/WWW/Library/Implementation/HTGopher.c @@ -1,5 +1,5 @@ /* - * $LynxId: HTGopher.c,v 1.47 2010/09/22 00:50:23 tom Exp $ + * $LynxId: HTGopher.c,v 1.48 2010/09/23 08:32:43 tom Exp $ * * GOPHER ACCESS HTGopher.c * ============= @@ -121,8 +121,8 @@ typedef struct _CSOfield_info { /* For form-based CSO gateway - FM */ static CSOfield_info *CSOfields = NULL; /* For form-based CSO gateway - FM */ typedef struct _CSOformgen_context { /* For form-based CSO gateway - FM */ - char *host; - char *seek; + const char *host; + const char *seek; CSOfield_info *fld; int port; int cur_line; |