diff options
author | des <des@FreeBSD.org> | 2002-02-05 22:13:51 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2002-02-05 22:13:51 +0000 |
commit | ec29926e4d7b6382c39d76ef0d75b6e476e13bfe (patch) | |
tree | cad86b96b05ec19f9c9eb4e26ddb8060f540c83d /lib/libfetch/common.h | |
parent | 98e34f92cb576f8096793659805327afe5ceaef3 (diff) | |
download | FreeBSD-src-ec29926e4d7b6382c39d76ef0d75b6e476e13bfe.zip FreeBSD-src-ec29926e4d7b6382c39d76ef0d75b6e476e13bfe.tar.gz |
Reindent, and add parentheses to return statements. Some functions in
ftp.c and http.c now have exceedingly long lines due to deep nesting;
this will be corrected by reorganizing the code in a later revision.
Diffstat (limited to 'lib/libfetch/common.h')
-rw-r--r-- | lib/libfetch/common.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/libfetch/common.h b/lib/libfetch/common.h index 84b2e01..7d93d96 100644 --- a/lib/libfetch/common.h +++ b/lib/libfetch/common.h @@ -38,8 +38,9 @@ /* Structure used for error message lists */ struct fetcherr { - const int num, cat; - const char *string; + const int num; + const int cat; + const char *string; }; void _fetch_seterr(struct fetcherr *, int); @@ -51,7 +52,7 @@ int _fetch_connect(const char *, int, int, int); int _fetch_getln(int, char **, size_t *, size_t *); int _fetch_putln(int, const char *, size_t); int _fetch_add_entry(struct url_ent **, int *, int *, - const char *, struct url_stat *); + const char *, struct url_stat *); #define _ftp_seterr(n) _fetch_seterr(_ftp_errlist, n) #define _http_seterr(n) _fetch_seterr(_http_errlist, n) @@ -74,11 +75,9 @@ int _fetch_add_entry(struct url_ent **, int *, int *, * whole lot of trouble. */ FILE *_http_request(struct url *, const char *, - struct url_stat *, struct url *, - const char *); + struct url_stat *, struct url *, const char *); FILE *_ftp_request(struct url *, const char *, - struct url_stat *, struct url *, - const char *); + struct url_stat *, struct url *, const char *); /* * Check whether a particular flag is set |