diff options
author | archie <archie@FreeBSD.org> | 2001-04-24 00:06:21 +0000 |
---|---|---|
committer | archie <archie@FreeBSD.org> | 2001-04-24 00:06:21 +0000 |
commit | 21cf7b313e0bc24fdfba9db608502a795edc2f64 (patch) | |
tree | 05583e8bec8550e39a977336f8b644648077d02e /lib/libfetch/common.h | |
parent | 6f92ffe2eb286bd4cfe49b9ef57447223e5a5858 (diff) | |
download | FreeBSD-src-21cf7b313e0bc24fdfba9db608502a795edc2f64.zip FreeBSD-src-21cf7b313e0bc24fdfba9db608502a795edc2f64.tar.gz |
Apply 'const' liberally.
Fix some other minor glitches.
Diffstat (limited to 'lib/libfetch/common.h')
-rw-r--r-- | lib/libfetch/common.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/lib/libfetch/common.h b/lib/libfetch/common.h index 13723a3..0c67b28 100644 --- a/lib/libfetch/common.h +++ b/lib/libfetch/common.h @@ -44,14 +44,14 @@ struct fetcherr { void _fetch_seterr(struct fetcherr *p, int e); void _fetch_syserr(void); -void _fetch_info(char *fmt, ...); -int _fetch_default_port(char *); -int _fetch_default_proxy_port(char *); -int _fetch_connect(char *host, int port, int af, int verbose); +void _fetch_info(const char *fmt, ...); +int _fetch_default_port(const char *); +int _fetch_default_proxy_port(const char *); +int _fetch_connect(const char *host, int port, int af, int verbose); int _fetch_getln(int fd, char **buf, size_t *size, size_t *len); -int _fetch_putln(int fd, char *str, size_t len); +int _fetch_putln(int fd, const char *str, size_t len); int _fetch_add_entry(struct url_ent **p, int *size, int *len, - char *name, struct url_stat *stat); + const char *name, struct url_stat *stat); #define _ftp_seterr(n) _fetch_seterr(_ftp_errlist, n) #define _http_seterr(n) _fetch_seterr(_http_errlist, n) @@ -72,8 +72,9 @@ int _fetch_add_entry(struct url_ent **p, int *size, int *len, * Note that _http_request() frees purl, which is way ugly but saves us a * whole lot of trouble. */ -FILE *_http_request(struct url *URL, char *op, struct url_stat *us, - struct url *purl, char *flags); +FILE *_http_request(struct url *URL, const char *op, + struct url_stat *us, struct url *purl, + const char *flags); /* * Check whether a particular flag is set |