From: Richard Russon Date: Tue, 21 Mar 2017 03:03:18 +0000 (+0000) Subject: tidy: comments X-Git-Tag: neomutt-20170414~19^2~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4abb11fdc0ef5ca8270a52b985bc02d6181366b0;p=neomutt tidy: comments - drop CVS marker: $Id$ - convert // comments - delete blank line between comment and function --- diff --git a/README.SECURITY b/README.SECURITY index 20d59bd82..5f90ff52e 100644 --- a/README.SECURITY +++ b/README.SECURITY @@ -1,5 +1,3 @@ -$Id$ - Recently, there have been reports on security problems induced by the interpretation of shell meta-characters embedded in MIME parameters. These reports were referring to Pine, but the problem diff --git a/alias.c b/alias.c index d0186819a..7cab41356 100644 --- a/alias.c +++ b/alias.c @@ -166,7 +166,6 @@ void mutt_expand_aliases_env (ENVELOPE *env) * $ wants to be quoted since it may indicate the start of an environment * variable. */ - static void write_safe_address (FILE *fp, char *s) { while (*s) @@ -401,7 +400,6 @@ retry_name: * Sanity-check an alias name: Only characters which are non-special to both * the RFC 822 and the mutt configuration parser are permitted. */ - int mutt_check_alias_name (const char *s, char *dest, size_t destlen) { wchar_t wc; diff --git a/attach.c b/attach.c index 5eeb78856..183d6671f 100644 --- a/attach.c +++ b/attach.c @@ -903,7 +903,6 @@ int mutt_decode_save_attachment (FILE *fp, BODY *m, char *path, * send: BODY->filename points to the un-encoded file which contains the * attachment */ - int mutt_print_attachment (FILE *fp, BODY *a) { char newfile[_POSIX_PATH_MAX] = ""; diff --git a/buffy.c b/buffy.c index 02db2997b..757293039 100644 --- a/buffy.c +++ b/buffy.c @@ -55,7 +55,6 @@ static short BuffyNotify = 0; /* # of unnotified new boxes */ /* Find the last message in the file. * upon success return 0. If no message found - return -1 */ - static int fseek_last_message (FILE * f) { LOFF_T pos; diff --git a/charset.c b/charset.c index 2ba43817c..9aaeefa5f 100644 --- a/charset.c +++ b/charset.c @@ -337,7 +337,6 @@ char *mutt_get_default_charset (void) * applied to tocode. Highlight note: The top-well-named MUTT_ICONV_HOOK_FROM * acts on charset-hooks, not at all on iconv-hooks. */ - iconv_t mutt_iconv_open (const char *tocode, const char *fromcode, int flags) { char tocode1[SHORT_STRING]; @@ -376,7 +375,6 @@ iconv_t mutt_iconv_open (const char *tocode, const char *fromcode, int flags) * If you're supplying inrepls, the source charset should be stateless; * if you're supplying an outrepl, the target charset should be. */ - size_t mutt_iconv (iconv_t cd, ICONV_CONST char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft, ICONV_CONST char **inrepls, const char *outrepl) @@ -449,7 +447,6 @@ size_t mutt_iconv (iconv_t cd, ICONV_CONST char **inbuf, size_t *inbytesleft, * Parameter flags is given as-is to mutt_iconv_open(). See there * for its meaning and usage policy. */ - int mutt_convert_string (char **ps, const char *from, const char *to, int flags) { iconv_t cd; diff --git a/color.c b/color.c index 30922514f..e21a42fc4 100644 --- a/color.c +++ b/color.c @@ -445,7 +445,6 @@ do_uncolor (BUFFER *buf, BUFFER *s, COLOR_LINE **ColorList, /* usage: uncolor index pattern [pattern...] * unmono index pattern [pattern...] */ - static int _mutt_parse_uncolor (BUFFER *buf, BUFFER *s, unsigned long data, BUFFER *err, short parse_uncolor) { @@ -762,7 +761,6 @@ static int fgbgattr_to_color(int fg, int bg, int attr) /* usage: color [ ] * mono [ ] */ - static int _mutt_parse_color (BUFFER *buf, BUFFER *s, BUFFER *err, parser_callback_t callback, short dry_run) diff --git a/commands.c b/commands.c index 6f18c7e3d..861d5e52b 100644 --- a/commands.c +++ b/commands.c @@ -386,7 +386,6 @@ static void pipe_msg (HEADER *h, FILE *fp, int decode, int print) /* the following code is shared between printing and piping */ - static int _mutt_pipe_message (HEADER *h, char *cmd, int decode, int print, diff --git a/compose.c b/compose.c index 0f0823fac..61a08e768 100644 --- a/compose.c +++ b/compose.c @@ -417,7 +417,6 @@ static void update_idx (MUTTMENU *menu, ATTACHPTR **idx, short idxlen) * applied. * */ - static unsigned long cum_attachs_size (MUTTMENU *menu) { size_t s; @@ -467,7 +466,6 @@ static void compose_status_line (char *buf, size_t buflen, size_t col, int cols, * This function is similar to status_format_str(). Look at that function for * help when modifying this function. */ - static const char * compose_format_str (char *buf, size_t buflen, size_t col, int cols, char op, const char *src, const char *prefix, const char *ifstring, diff --git a/contrib/Makefile.am b/contrib/Makefile.am index bdae6dce5..351dadcd0 100644 --- a/contrib/Makefile.am +++ b/contrib/Makefile.am @@ -1,5 +1,3 @@ -# $Id$ - subdir = contrib SAMPLES = Mush.rc Pine.rc gpg.rc pgp2.rc pgp5.rc pgp6.rc Tin.rc \ diff --git a/contrib/Mush.rc b/contrib/Mush.rc index cdbb4ded8..90ff76a5f 100644 --- a/contrib/Mush.rc +++ b/contrib/Mush.rc @@ -2,8 +2,6 @@ # Key bindings similar to those of MUSH # -# $Id$ - bind index . display-message bind index t display-message macro index n "" diff --git a/contrib/Pine.rc b/contrib/Pine.rc index b0deea16f..0295aee09 100644 --- a/contrib/Pine.rc +++ b/contrib/Pine.rc @@ -3,10 +3,6 @@ # similar to those of PINE 3.95. # -# -# $Id$ -# - bind index v display-message bind index p previous-undeleted bind index n next-undeleted diff --git a/contrib/gpg.rc b/contrib/gpg.rc index 5c4dd2727..3392038bf 100644 --- a/contrib/gpg.rc +++ b/contrib/gpg.rc @@ -5,8 +5,6 @@ # This version uses gpg-2comp from # http://70t.de/download/gpg-2comp.tar.gz # -# $Id$ -# # %p The empty string when no passphrase is needed, # the string "PGPPASSFD=0" if one is needed. # diff --git a/contrib/language.txt b/contrib/language.txt index e6aee7bcc..e7ce67b8a 100644 --- a/contrib/language.txt +++ b/contrib/language.txt @@ -1,7 +1,5 @@ # Translation file for PGP 2.6.3(i)n. -# $Id$ - # ------------------------------------------------------------------ # Character set: ISO-Latin/1 (ISO 8859/1) # Date revised: 7 October 1997 diff --git a/contrib/language50.txt b/contrib/language50.txt index 614833bb3..50376bfc2 100644 --- a/contrib/language50.txt +++ b/contrib/language50.txt @@ -1,7 +1,5 @@ #This file contains the strings used by PGP. -# $Id$ - [DIFFERENT_EXES] us=\ PGP is now invoked from different executables for different operations:\n\n\ diff --git a/contrib/pgp2.rc b/contrib/pgp2.rc index bd66cf10e..bd01e2d20 100644 --- a/contrib/pgp2.rc +++ b/contrib/pgp2.rc @@ -2,8 +2,6 @@ # # PGP command formats for PGP 2. # -# $Id$ -# # # Note: In order to be able to read your own messages, you'll have diff --git a/contrib/pgp5.rc b/contrib/pgp5.rc index 627e57979..4440d6b77 100644 --- a/contrib/pgp5.rc +++ b/contrib/pgp5.rc @@ -2,8 +2,6 @@ # # PGP command formats for PGP 5. # -# $Id$ -# # decode application/pgp set pgp_decode_command="%?p?PGPPASSFD=0; export PGPPASSFD;? cat %?p?-? %f | pgpv +language=mutt +verbose=0 +batchmode -f --OutputInformationFD=0" diff --git a/contrib/pgp6.rc b/contrib/pgp6.rc index a317d4bec..a87080428 100644 --- a/contrib/pgp6.rc +++ b/contrib/pgp6.rc @@ -2,8 +2,6 @@ # # PGP command formats for PGP 6. # -# $Id$ -# # decode application/pgp set pgp_decode_command="%?p?PGPPASSFD=0; export PGPPASSFD;? cat %?p?-? %f | pgp6 +compatible +verbose=0 +batchmode -f" diff --git a/contrib/sample.mailcap b/contrib/sample.mailcap index 90df26631..5d4c4f852 100644 --- a/contrib/sample.mailcap +++ b/contrib/sample.mailcap @@ -1,5 +1,3 @@ -# $Id$ - text/html; netscape -remote openURL\(%s\) image/gif; xv %s image/jpg; xv %s diff --git a/contrib/sample.muttrc b/contrib/sample.muttrc index 34e00cb9f..0a8f2f849 100644 --- a/contrib/sample.muttrc +++ b/contrib/sample.muttrc @@ -1,5 +1,3 @@ -# $Id$ - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # ME's personal .muttrc (Mutt 0.92.5) diff --git a/copy.c b/copy.c index 4b4ccdc05..8b74c3a8c 100644 --- a/copy.c +++ b/copy.c @@ -348,7 +348,6 @@ mutt_copy_hdr (FILE *in, FILE *out, LOFF_T off_start, LOFF_T off_end, int flags, prefix string to use if CH_PREFIX is set */ - int mutt_copy_header (FILE *in, HEADER *h, FILE *out, int flags, const char *prefix) { @@ -519,7 +518,6 @@ static int count_delete_lines (FILE *fp, BODY *b, LOFF_T *length, size_t datelen * MUTT_CM_CHARCONV perform character set conversion * chflags flags to mutt_copy_header() */ - int _mutt_copy_message (FILE *fpout, FILE *fpin, HEADER *hdr, BODY *body, int flags, int chflags) @@ -752,7 +750,6 @@ mutt_copy_message (FILE *fpout, CONTEXT *src, HEADER *hdr, int flags, * flags mutt_copy_message() flags * chflags mutt_copy_header() flags */ - static int _mutt_append_message (CONTEXT *dest, FILE *fpin, CONTEXT *src, HEADER *hdr, BODY *body, int flags, int chflags) @@ -855,7 +852,6 @@ static int copy_delete_attach (BODY *b, FILE *fpin, FILE *fpout, char *date) * * XXX - fix that. */ - static void format_address_header (char **h, ADDRESS *a) { char buf[HUGE_STRING]; diff --git a/crypt-gpgme.c b/crypt-gpgme.c index d876be828..8953091d8 100644 --- a/crypt-gpgme.c +++ b/crypt-gpgme.c @@ -2164,7 +2164,6 @@ static int line_compare(const char *a, size_t n, const char *b) /* * Implementation of `pgp_check_traditional'. */ - static int pgp_check_traditional_one_body (FILE *fp, BODY *b, int tagged_only) { char tempfile[_POSIX_PATH_MAX]; @@ -2289,7 +2288,6 @@ void pgp_gpgme_invoke_import (const char *fname) (Note that we aren't worse than Outlook & Cie in this, and also note that we can successfully handle anything produced by any existing versions of mutt.) */ - static void copy_clearsigned (gpgme_data_t data, STATE *s, char *charset) { char buf[HUGE_STRING]; @@ -2756,7 +2754,6 @@ int smime_gpgme_application_handler (BODY *a, STATE *s) * %p protocol * %[...] date of key using strftime(3) */ - static const char *crypt_entry_fmt (char *dest, size_t destlen, size_t col, diff --git a/crypt.c b/crypt.c index a615bb529..19f819247 100644 --- a/crypt.c +++ b/crypt.c @@ -859,7 +859,6 @@ int crypt_get_keys (HEADER *msg, char **keylist, int oppenc_mode) * Check if all recipients keys can be automatically determined. * Enable encryption if they can, otherwise disable encryption. */ - void crypt_opportunistic_encrypt(HEADER *msg) { char *pgpkeylist = NULL; @@ -907,7 +906,6 @@ static void crypt_fetch_signatures (BODY ***signatures, BODY *a, int *n) /* * This routine verifies a "multipart/signed" body. */ - int mutt_signed_handler (BODY *a, STATE *s) { char tempfile[_POSIX_PATH_MAX]; @@ -1118,7 +1116,6 @@ const char* crypt_get_fingerprint_or_id (char *p, const char **pphint, * Used by pgp_find_keys and find_keys to check if a crypt-hook * value is a key id. */ - short crypt_is_numerical_keyid (const char *s) { /* or should we require the "0x"? */ diff --git a/curs_lib.c b/curs_lib.c index f888d77b6..21efe7a5f 100644 --- a/curs_lib.c +++ b/curs_lib.c @@ -977,7 +977,6 @@ int mutt_multi_choice (char *prompt, char *letters) /* * addwch would be provided by an up-to-date curses library */ - int mutt_addwch (wchar_t wc) { char buf[MB_LEN_MAX*2]; @@ -999,7 +998,6 @@ int mutt_addwch (wchar_t wc) * except that the widths refer to the number of character cells * when printed. */ - void mutt_format_string (char *dest, size_t destlen, int min_width, int max_width, int justify, char m_pad_char, @@ -1105,7 +1103,6 @@ void mutt_format_string (char *dest, size_t destlen, * except that the numbers in the conversion specification refer to * the number of character cells when printed. */ - static void format_s_x (char *dest, size_t destlen, const char *prefix, @@ -1154,7 +1151,6 @@ void mutt_format_s_tree (char *dest, * mutt_paddstr (n, s) is almost equivalent to * mutt_format_string (bigbuf, big, n, n, FMT_LEFT, ' ', s, big, 0), addstr (bigbuf) */ - void mutt_paddstr (int n, const char *s) { wchar_t wc; @@ -1263,7 +1259,6 @@ int mutt_charlen (const char *s, int *width) * mutt_strwidth is like mutt_strlen except that it returns the width * referring to the number of character cells. */ - int mutt_strwidth (const char *s) { wchar_t wc; diff --git a/doc/PGP-Notes.txt b/doc/PGP-Notes.txt index e152eb1d8..02762497b 100644 --- a/doc/PGP-Notes.txt +++ b/doc/PGP-Notes.txt @@ -1,5 +1,3 @@ -$Id$ - USING PGP FROM WITHIN MUTT diff --git a/doc/applying-patches.txt b/doc/applying-patches.txt index e29428c4c..ea228a017 100644 --- a/doc/applying-patches.txt +++ b/doc/applying-patches.txt @@ -22,4 +22,3 @@ after applying patches may help: After doing so, simply type "make"; the dependencies should take care of the necessary other re-building (this may quite well include a re-running of ./configure). -$Id$ diff --git a/editmsg.c b/editmsg.c index c2331cb32..47959616e 100644 --- a/editmsg.c +++ b/editmsg.c @@ -40,7 +40,6 @@ * 0 message edited successfully * -1 error */ - static int edit_one_message (CONTEXT *ctx, HEADER *cur) { char tmp[_POSIX_PATH_MAX]; diff --git a/enter.c b/enter.c index 861d48621..69907a5a4 100644 --- a/enter.c +++ b/enter.c @@ -159,7 +159,6 @@ static size_t my_mbstowcs (wchar_t **pwbuf, size_t *pwbuflen, size_t i, char *bu /* * Replace part of the wchar_t buffer, from FROM to CURPOS, by BUF. */ - static void replace_part (ENTER_STATE *state, size_t from, char *buf) { /* Save the suffix */ @@ -207,7 +206,6 @@ static inline int is_shell_char(wchar_t ch) * 0 if input was given * -1 if abort. */ - int mutt_enter_string(char *buf, size_t buflen, int col, int flags) { int rv; diff --git a/from.c b/from.c index 73026a942..bdc089722 100644 --- a/from.c +++ b/from.c @@ -58,7 +58,6 @@ static int is_day_name (const char *s) * * From [ ]