From: Pierre Habouzit Date: Mon, 28 May 2007 13:50:11 +0000 (+0200) Subject: const, style X-Git-Url: http://git.madism.org/?a=commitdiff_plain;h=e6727abf01458053dc2291e9f945a0a31507d1f3;p=apps%2Fmadmutt.git const, style Signed-off-by: Pierre Habouzit --- diff --git a/account.c b/account.c index 92cbdab..0813f20 100644 --- a/account.c +++ b/account.c @@ -82,7 +82,7 @@ int mutt_account_fromurl(ACCOUNT *account, ciss_url_t *url) * is a set of pointers into account - don't free or edit account until * you've finished with url (make a copy of account if you need it for * a while). */ -void mutt_account_tourl (ACCOUNT * account, ciss_url_t * url) +void mutt_account_tourl(ACCOUNT *account, ciss_url_t *url) { url->scheme = U_UNKNOWN; url->user = NULL; diff --git a/lib-lib/url.c b/lib-lib/url.c index ce0f970..a60f859 100644 --- a/lib-lib/url.c +++ b/lib-lib/url.c @@ -147,7 +147,7 @@ int url_parse_ciss(ciss_url_t *ciss, char *src) } /* url_ciss_tostring: output the URL string for a given CISS object. */ -int url_ciss_tostring(ciss_url_t *ciss, char *dst, ssize_t len, int flags) +int url_ciss_tostring(const ciss_url_t *ciss, char *dst, ssize_t len, int flags) { ssize_t l = 0; diff --git a/lib-lib/url.h b/lib-lib/url.h index 74a0e2a..795c4d0 100644 --- a/lib-lib/url.h +++ b/lib-lib/url.h @@ -52,6 +52,6 @@ char *url_decode(char *); url_scheme_t url_check_scheme (const char *s); int url_parse_ciss(ciss_url_t *ciss, char *src); -int url_ciss_tostring(ciss_url_t *ciss, char *dst, ssize_t len, int flags); +int url_ciss_tostring(const ciss_url_t *ciss, char *dst, ssize_t len, int flags); #endif /* MUTT_LIB_LIB_URL_H */