]> granicus.if.org Git - neomutt/log
neomutt
17 years agoRemove unnecessary workaround for automake dist target
Emanuele Giaquinta [Wed, 7 Nov 2007 00:34:05 +0000 (16:34 -0800)]
Remove unnecessary workaround for automake dist target

17 years agoIgnore config.h.in~
Brendan Cully [Tue, 6 Nov 2007 22:32:21 +0000 (14:32 -0800)]
Ignore config.h.in~

17 years agoAdd percentages to progress bar optionally supplied by caller.
Rocco Rutte [Tue, 6 Nov 2007 17:23:06 +0000 (18:23 +0100)]
Add percentages to progress bar optionally supplied by caller.
This is necessary to let the mbox driver print useful percentages. If there's no
percentage given and we have a size, calculate on it on our own. Closes #2929.

17 years ago(Re-)Add total msg count to progress for parsing maildirs
Rocco Rutte [Tue, 6 Nov 2007 16:22:50 +0000 (17:22 +0100)]
(Re-)Add total msg count to progress for parsing maildirs

17 years agoUpdated French translation
Vincent Lefevre [Mon, 5 Nov 2007 22:24:45 +0000 (14:24 -0800)]
Updated French translation

17 years agoSave value of errno across mutt_endwin() calls.
Rocco Rutte [Mon, 5 Nov 2007 16:47:26 +0000 (17:47 +0100)]
Save value of errno across mutt_endwin() calls.
Mutt_endwin() is sometimes called after noticing an error but before
printing the message via perror(). Closes #2965.

17 years agoManual: Fix typo
Emanuele Giaquinta [Mon, 5 Nov 2007 14:53:50 +0000 (15:53 +0100)]
Manual: Fix typo

17 years agoManual: Improve [un]mailboxes documentation. Closes #2204.
Rocco Rutte [Mon, 5 Nov 2007 13:53:11 +0000 (14:53 +0100)]
Manual: Improve [un]mailboxes documentation. Closes #2204.

17 years agohg-commit: Exclude merges when writing ChangeLog
Rocco Rutte [Mon, 5 Nov 2007 13:52:26 +0000 (14:52 +0100)]
hg-commit: Exclude merges when writing ChangeLog

17 years agoMerge with tip
Rocco Rutte [Mon, 5 Nov 2007 11:12:39 +0000 (12:12 +0100)]
Merge with tip

17 years agoOptionally define $datarootdir on our own for autoconf <2.60 compatibility.
Ralf Wildenhues [Mon, 5 Nov 2007 11:11:21 +0000 (12:11 +0100)]
Optionally define $datarootdir on our own for autoconf <2.60 compatibility.
While I'm at it, fix two warnings in other files about
ignoring datarootdir with autoconf >2.60. Closes #2905.

17 years agoUpdated Russian translation
Vsevolod Volkov [Sun, 4 Nov 2007 21:19:14 +0000 (13:19 -0800)]
Updated Russian translation

17 years agoUpdated Catalan translation
Ivan Vilata i Balaguer [Sun, 4 Nov 2007 21:17:43 +0000 (13:17 -0800)]
Updated Catalan translation

17 years agoUpdated German translation
Roland Rosenfeld [Sun, 4 Nov 2007 21:16:01 +0000 (13:16 -0800)]
Updated German translation

17 years agoFixup UPDATING for 1.5.16/1.5.17
Rocco Rutte [Sun, 4 Nov 2007 18:10:33 +0000 (19:10 +0100)]
Fixup UPDATING for 1.5.16/1.5.17

17 years agoUse strtok_r() to parse mailto: links, not strtok().
Unknown [Sun, 4 Nov 2007 17:27:24 +0000 (18:27 +0100)]
Use strtok_r() to parse mailto: links, not strtok().
In case a headers needs to call mutt_parse_references() which uses
strtok(), too, later headers will be silently discarded. Closes #2968.

17 years agoPrevent mailto parsing buffer overflow by ignoring too long header.
Rocco Rutte [Sun, 4 Nov 2007 17:14:25 +0000 (18:14 +0100)]
Prevent mailto parsing buffer overflow by ignoring too long header.
If they're longer than our buffer, we can't turn it into a header to
be parsed by mutt_parse_rfc822_line() anyway, so we bail out in this
case. Also make main() catchup mailto parsing errors. Closes #2980.

17 years agoAdd 1.5.17 to UPDATING
Rocco Rutte [Sun, 4 Nov 2007 16:02:56 +0000 (17:02 +0100)]
Add 1.5.17 to UPDATING

17 years agoImprove DSN docs (require sendmail-compatible MTA, add SMTP notes). Closes #2979
Rocco Rutte [Sun, 4 Nov 2007 16:01:12 +0000 (17:01 +0100)]
Improve DSN docs (require sendmail-compatible MTA, add SMTP notes). Closes #2979

17 years agoCheck Maildir for not being NULL when expanding '='-paths. Closes #2977.
Rocco Rutte [Sat, 3 Nov 2007 10:12:19 +0000 (11:12 +0100)]
Check Maildir for not being NULL when expanding '='-paths. Closes #2977.

17 years agoUpdated Polish translation.
Pawel Dziekonski [Fri, 2 Nov 2007 23:55:55 +0000 (16:55 -0700)]
Updated Polish translation.

17 years agoUpdated Czech translation.
Petr Pisar [Fri, 2 Nov 2007 03:36:23 +0000 (20:36 -0700)]
Updated Czech translation.

17 years agoUse $datarootdir as default prefix for documentation (closes #2905)
Brendan Cully [Thu, 1 Nov 2007 22:45:26 +0000 (15:45 -0700)]
Use $datarootdir as default prefix for documentation (closes #2905)

17 years agomutt-1.5.17 signed
Brendan Cully [Thu, 1 Nov 2007 21:10:34 +0000 (14:10 -0700)]
mutt-1.5.17 signed

17 years agoAdded tag mutt-1-5-17-rel for changeset cd03dff9b576
Brendan Cully [Thu, 1 Nov 2007 21:07:21 +0000 (14:07 -0700)]
Added tag mutt-1-5-17-rel for changeset cd03dff9b576

17 years agoautomatic post-release commit for mutt-1.5.17
Brendan Cully [Thu, 1 Nov 2007 21:07:21 +0000 (14:07 -0700)]
automatic post-release commit for mutt-1.5.17

17 years agoFix typo in hg-commit
Brendan Cully [Thu, 1 Nov 2007 20:53:47 +0000 (13:53 -0700)]
Fix typo in hg-commit

17 years agoUnbreak exact address feature.
Rocco Rutte [Thu, 1 Nov 2007 20:21:33 +0000 (21:21 +0100)]
Unbreak exact address feature.
The problem was that when reading back tempfiles for pager display, trailing
\n were not removed from the input so the pager displayed 2 instead of 1.

17 years agoDetect BDB automatically if --with-bdb is empty
Oswald Buddenhagen [Thu, 1 Nov 2007 19:13:00 +0000 (12:13 -0700)]
Detect BDB automatically if --with-bdb is empty

17 years agodevel-notes.txt: Mention where hg repo is, how to clone and update
Rocco Rutte [Thu, 1 Nov 2007 13:33:12 +0000 (14:33 +0100)]
devel-notes.txt: Mention where hg repo is, how to clone and update

17 years agoDocumentation: Add doc/TODO with some items still open
Rocco Rutte [Thu, 1 Nov 2007 13:23:30 +0000 (14:23 +0100)]
Documentation: Add doc/TODO with some items still open

17 years agoManual: s/SMTP support/SMTP Support/ (for consitency)
Rocco Rutte [Thu, 1 Nov 2007 12:43:58 +0000 (13:43 +0100)]
Manual: s/SMTP support/SMTP Support/ (for consitency)

17 years agoManual: Remove 404 link for fetchmail, mention getmail, too
Rocco Rutte [Thu, 1 Nov 2007 12:01:32 +0000 (13:01 +0100)]
Manual: Remove 404 link for fetchmail, mention getmail, too

17 years agoManual: Add short section on SSL/TLS support (needs more details)
Rocco Rutte [Thu, 1 Nov 2007 11:56:22 +0000 (12:56 +0100)]
Manual: Add short section on SSL/TLS support (needs more details)

17 years agoManual: Document URL syntax in just one place, let others refer to it.
Rocco Rutte [Thu, 1 Nov 2007 11:44:18 +0000 (12:44 +0100)]
Manual: Document URL syntax in just one place, let others refer to it.

17 years agoManual: Document optional SMTP support
Rocco Rutte [Thu, 1 Nov 2007 11:15:30 +0000 (12:15 +0100)]
Manual: Document optional SMTP support

17 years agoManual: Add some general notes about optional features.
Rocco Rutte [Thu, 1 Nov 2007 10:56:03 +0000 (11:56 +0100)]
Manual: Add some general notes about optional features.
Mention 'configure --help' and 'mutt -v' output.

17 years agoManual: Move POP3, IMAP and cache-related sections to their own chapter.
Rocco Rutte [Thu, 1 Nov 2007 10:45:44 +0000 (11:45 +0100)]
Manual: Move POP3, IMAP and cache-related sections to their own chapter.

17 years agoManual: Add ids to all tables and use <xref/> for reference.
Rocco Rutte [Thu, 1 Nov 2007 10:04:25 +0000 (11:04 +0100)]
Manual: Add ids to all tables and use <xref/> for reference.

17 years agoAdd more autoconf support files to .hgignore
Rocco Rutte [Thu, 1 Nov 2007 08:46:27 +0000 (09:46 +0100)]
Add more autoconf support files to .hgignore

17 years agoRemove autotools support files which autoreconf -i can generate
Brendan Cully [Wed, 31 Oct 2007 23:34:17 +0000 (16:34 -0700)]
Remove autotools support files which autoreconf -i can generate

17 years agocvslog2changelog.pl is obsolete
Brendan Cully [Wed, 31 Oct 2007 23:24:39 +0000 (16:24 -0700)]
cvslog2changelog.pl is obsolete

17 years agos/Mercurial/hg/
Brendan Cully [Wed, 31 Oct 2007 23:23:37 +0000 (16:23 -0700)]
s/Mercurial/hg/

17 years agos/cvs/Mercurial/
Brendan Cully [Wed, 31 Oct 2007 23:20:58 +0000 (16:20 -0700)]
s/cvs/Mercurial/

17 years agoFall back to rename for ENOTSUP and EOPNOTSUPP too. Closes #2975
Unknown [Wed, 31 Oct 2007 21:09:31 +0000 (14:09 -0700)]
Fall back to rename for ENOTSUP  and EOPNOTSUPP too. Closes #2975

17 years agoFix the test for flushing queued STATUS requests in imap_buffy_check.
Brendan Cully [Wed, 31 Oct 2007 21:04:48 +0000 (14:04 -0700)]
Fix the test for flushing queued STATUS requests in imap_buffy_check.
This should fix the bug that caused every other IMAP connection to
fail to get the new message counts. Thanks to exg for his generous
help debugging this one.

17 years agoLarge file support for mutt_pretty_size().
Rocco Rutte [Thu, 25 Oct 2007 15:03:03 +0000 (17:03 +0200)]
Large file support for mutt_pretty_size().
Based on a patch by Corinna Vinschen, adjusted for LOFF_T/OFF_T_FMT
(closes #2191).

17 years agoAdd UPDATING entry for %P for $pager_format
Rocco Rutte [Thu, 25 Oct 2007 14:57:33 +0000 (16:57 +0200)]
Add UPDATING entry for %P for $pager_format

17 years agoEnlarge temporary buffer in hdr_format_str to prevent subject truncation.
Rocco Rutte [Thu, 18 Oct 2007 08:20:49 +0000 (10:20 +0200)]
Enlarge temporary buffer in hdr_format_str to prevent subject truncation.
The subject along with the thread tree are composed using a
SHORT_STRING-sized buffer which may lead to truncation even
though the destination buffer is large enough.

17 years agoManual: fix typo (closes #2971).
Rocco Rutte [Tue, 16 Oct 2007 09:33:15 +0000 (11:33 +0200)]
Manual: fix typo (closes #2971).

17 years agof=f: Print standalone fixed lines as-is (closes #2917).
Rocco Rutte [Mon, 15 Oct 2007 09:01:01 +0000 (11:01 +0200)]
f=f: Print standalone fixed lines as-is (closes #2917).

17 years agoDocument format string pipes.
Rocco Rutte [Thu, 11 Oct 2007 10:10:49 +0000 (12:10 +0200)]
Document format string pipes.
This is roughly the commit message only. Add a line to UPDATING (mark
it as a change rather than a new feature as it may break setups).

17 years agoDocument that $indent_string actually is a format string.
Rocco Rutte [Thu, 11 Oct 2007 09:18:51 +0000 (11:18 +0200)]
Document that $indent_string actually is a format string.

17 years agoDo not consider empty pipes for filtering in format strings.
Rocco Rutte [Thu, 11 Oct 2007 09:03:42 +0000 (11:03 +0200)]
Do not consider empty pipes for filtering in format strings.
This fixes a crash with $indent_string="|" and $text_flowed unset.

17 years agoMake mutt_FormatString()'s string truncation multibyte aware
Rocco Rutte [Fri, 28 Sep 2007 09:06:43 +0000 (11:06 +0200)]
Make mutt_FormatString()'s string truncation multibyte aware

17 years agoEnlarge buffers for printing menu entries from STRING to LONG_STRING.
Rocco Rutte [Wed, 19 Sep 2007 10:22:05 +0000 (12:22 +0200)]
Enlarge buffers for printing menu entries from STRING to LONG_STRING.
Now that multibyte padding works, we may too soon run into too short
buffers for common terminal widths in graphical terminals.

17 years agoUse mutt_paddstr() to print compose menu's status line rather than printw().
Rocco Rutte [Wed, 19 Sep 2007 09:53:03 +0000 (11:53 +0200)]
Use mutt_paddstr() to print compose menu's status line rather than printw().
All other menus use mutt_paddstr(): printw() prints only N bytes, not N columns.

17 years agoDocument that $charset is a fallback for $send_charset
Rocco Rutte [Tue, 18 Sep 2007 09:37:25 +0000 (11:37 +0200)]
Document that $charset is a fallback for $send_charset

17 years agoBackoug changeset 6f06b7f1f76f
Rocco Rutte [Mon, 17 Sep 2007 15:32:35 +0000 (17:32 +0200)]
Backoug changeset 6f06b7f1f76f

17 years agoEnable padding with multibyte chars for %>X, %*X and %|X
Rocco Rutte [Mon, 17 Sep 2007 13:42:34 +0000 (15:42 +0200)]
Enable padding with multibyte chars for %>X, %*X and %|X

17 years agoMark interesting items in mutt -v output for translation
Rocco Rutte [Mon, 17 Sep 2007 11:05:33 +0000 (13:05 +0200)]
Mark interesting items in mutt -v output for translation

17 years agoInclude hcache backend version info in mutt -v output
Rocco Rutte [Mon, 17 Sep 2007 09:35:05 +0000 (11:35 +0200)]
Include hcache backend version info in mutt -v output

17 years agoUse NONULL to ensure we can pretty-print empty paths for option queries
Rocco Rutte [Mon, 17 Sep 2007 07:47:58 +0000 (09:47 +0200)]
Use NONULL to ensure we can pretty-print empty paths for option queries

17 years agoThe new MD5 code needs AC_C_BIGENDIAN on big-endian systems
Emanuele Giaquinta [Fri, 14 Sep 2007 18:35:27 +0000 (11:35 -0700)]
The new MD5 code needs AC_C_BIGENDIAN on big-endian systems

17 years agoDo not clobber --with-bdb argument (closes #2955)
Brendan Cully [Thu, 13 Sep 2007 16:39:47 +0000 (09:39 -0700)]
Do not clobber --with-bdb argument (closes #2955)

17 years agoEnlarge error buffer in mutt_enter_command() to not truncate option queries.
Rocco Rutte [Tue, 11 Sep 2007 16:33:48 +0000 (18:33 +0200)]
Enlarge error buffer in mutt_enter_command() to not truncate option queries.
The error buffer gets passed down into parse_set() using it to report
option values. SHORT_STRING is too short to even print some defaults
(e.g. $status_format).

17 years agoLet %*X padding share the same code of %>X padding
Rocco Rutte [Tue, 11 Sep 2007 16:21:40 +0000 (18:21 +0200)]
Let %*X padding share the same code of %>X padding
The current implementation of %*X was completely multibyte-unaware and
had buffer overflow issues with large terminals. Now we use the same
code as %>X has and optionally only truncate left content to make sure
the right content can be printed entirely.

17 years agoUpdated French translation.
Vincent Lefevre [Mon, 10 Sep 2007 18:14:55 +0000 (11:14 -0700)]
Updated French translation.

17 years agoMake mutt_FormatString() more multibyte-aware
Rocco Rutte [Mon, 10 Sep 2007 06:54:51 +0000 (08:54 +0200)]
Make mutt_FormatString() more multibyte-aware
As default cause, don't copy raw bytes but copy multibyte chars instead
to ensure column computation is correct (needed for padding).

17 years agoEscape option values for variable queries and completion to ensure they're parsable
Rocco Rutte [Mon, 10 Sep 2007 06:07:31 +0000 (08:07 +0200)]
Escape option values for variable queries and completion to ensure they're parsable

17 years agoLet imap_complete_hosts work with the last mailbox (closes #2949).
Andreas Jaggi [Sun, 9 Sep 2007 22:48:23 +0000 (15:48 -0700)]
Let imap_complete_hosts work with the last mailbox (closes #2949).
This was an off-by-one error in the mailbox loop.

17 years agoOnly check whether GNUTLS error is fatal when an error occurs (closes #2954).
Julien Cristau [Sun, 9 Sep 2007 22:20:12 +0000 (15:20 -0700)]
Only check whether GNUTLS error is fatal when an error occurs (closes #2954).
The API for GNUTLS changed to require this in 1.7.18.

17 years agoautoreconf --include doesn't pass its argument to aclocal.
Brendan Cully [Sat, 8 Sep 2007 22:30:20 +0000 (15:30 -0700)]
autoreconf --include doesn't pass its argument to aclocal.
Let ACLOCAL_AMFLAGS in Makefile.am handle that.

17 years agoAttempt to clean up DB back-end selection
Brendan Cully [Sat, 8 Sep 2007 22:20:47 +0000 (15:20 -0700)]
Attempt to clean up DB back-end selection

17 years agoRewrite padding logic for mutt_FormatString()
Rocco Rutte [Thu, 6 Sep 2007 18:13:46 +0000 (20:13 +0200)]
Rewrite padding logic for mutt_FormatString()

Do so by checking columns and bytes individually to make sure we really
don't write past the end of allocated buffers. This patch fixes all my
crashes I saw with files attached to/with the settings for #2882 and #2900.

17 years agoFix/improve intl error messages
Rocco Rutte [Wed, 5 Sep 2007 10:52:48 +0000 (10:52 +0000)]
Fix/improve intl error messages

17 years agoInterpret relative paths in browser relative to shown dir, not working
Rocco Rutte [Wed, 5 Sep 2007 07:16:36 +0000 (07:16 +0000)]
Interpret relative paths in browser relative to shown dir, not working
dir (closes #2471).

17 years agoTeach pager how to ignore $wrap and use it for help (closes #2896).
Rocco Rutte [Wed, 5 Sep 2007 07:12:14 +0000 (07:12 +0000)]
Teach pager how to ignore $wrap and use it for help (closes #2896).

17 years agoManual: make sure <screen/> contents in shorter than 80 chars
Rocco Rutte [Wed, 5 Sep 2007 07:07:00 +0000 (07:07 +0000)]
Manual: make sure <screen/> contents in shorter than 80 chars

Otherwise conversion to plain text may cause line breaks rendering
examples syntacially invalid (closes #2185).

17 years agoManual: don't use <screen/> to present structured data
Rocco Rutte [Wed, 5 Sep 2007 07:03:28 +0000 (07:03 +0000)]
Manual: don't use <screen/> to present structured data

17 years agoFix buffer overflow in mutt_FormatString()
Rocco Rutte [Wed, 5 Sep 2007 06:56:25 +0000 (06:56 +0000)]
Fix buffer overflow in mutt_FormatString()

The variable in question is supposed to track string sizes, not string
widths (closes #2882 and #2900).

17 years agoAdd libz to crypto libs if available (closes #2303).
Brendan Cully [Wed, 5 Sep 2007 00:22:59 +0000 (17:22 -0700)]
Add libz to crypto libs if available (closes #2303).

17 years agoUpdated Catalan translation
Ivan Vilata i Balaguer [Tue, 4 Sep 2007 19:06:07 +0000 (12:06 -0700)]
Updated Catalan translation

17 years agoDecrement the mtime of the tempfile during edit-message to make mutt
Gary Johnson [Fri, 31 Aug 2007 17:12:18 +0000 (10:12 -0700)]
Decrement the mtime of the tempfile during edit-message to make mutt
notice changes taking less than one second.

17 years agoInsert .pp after .de to fix man page generation (closes #2940)
Brendan Cully [Tue, 28 Aug 2007 18:33:52 +0000 (11:33 -0700)]
Insert .pp after .de to fix man page generation (closes #2940)

17 years agoCheck subscriptions after any authentication, rather than after fist connection ...
Brendan Cully [Tue, 28 Aug 2007 17:58:30 +0000 (10:58 -0700)]
Check subscriptions after any authentication, rather than after fist connection (closes #2908)

17 years agoUse limits.h for PATH_MAX instead of posix1_lim.h (closes #2525)
Brendan Cully [Tue, 28 Aug 2007 17:43:08 +0000 (10:43 -0700)]
Use limits.h for PATH_MAX instead of posix1_lim.h (closes #2525)

17 years agoUpdate auth_cram for new MD5 code (untested).
Brendan Cully [Mon, 27 Aug 2007 18:07:42 +0000 (11:07 -0700)]
Update auth_cram for new MD5 code (untested).

17 years agoReplace RFC md5 implementation with GPL version from coreutils
Brendan Cully [Mon, 27 Aug 2007 17:13:51 +0000 (10:13 -0700)]
Replace RFC md5 implementation with GPL version from coreutils

17 years agoCheck for lost tty if getch returns error (closes #1220)
Brendan Cully [Thu, 16 Aug 2007 16:32:33 +0000 (09:32 -0700)]
Check for lost tty if getch returns error (closes #1220)
Great thanks to Vincent Lefevre for tracking this one down.

17 years agoFix RFC 3676 (format=flowed text) handling.
Michael Vrable [Thu, 16 Aug 2007 03:09:42 +0000 (20:09 -0700)]
Fix RFC 3676 (format=flowed text) handling.

The old code would consider a line containing "> " to be flowed, but
since this is a quoted and space-stuffed line containing no additional
text, by my reading of RFC 3676 it should be fixed.

Clean up the handling of format=flowed text.  Fix the test to determine
whether a line is fixed--if a line ends in a space only because the last
character is a space from space-stuffing, consider the line to be a
fixed line.  This makes the test for ((buf_len - buf_off) <= 0) later no
longer necessary.

Also simplify the code by removing checks for curline being non-null; it
is allocated at the start of the function and never reallocated to size
zero, so it should never be a null pointer.

17 years agoTrim whitespace in definition lists for man pages (closes #2941).
Kyle Wheeler [Wed, 8 Aug 2007 17:49:33 +0000 (10:49 -0700)]
Trim whitespace in definition lists for man pages (closes #2941).

17 years agoClarify the documentation for $use_envelope_from (closes #2936).
Brendan Cully [Fri, 3 Aug 2007 05:30:21 +0000 (22:30 -0700)]
Clarify the documentation for $use_envelope_from (closes #2936).
Thanks to Vincent Lefevre for the suggestions.

17 years agoUpdated French translation.
Vincent Lefevre [Wed, 25 Jul 2007 18:16:49 +0000 (11:16 -0700)]
Updated French translation.

17 years agoMake is_shell_char static. Closes #2907.
Brendan Cully [Mon, 16 Jul 2007 17:46:49 +0000 (10:46 -0700)]
Make is_shell_char static. Closes #2907.

17 years agoCheck that spam expression has enough matches for its template. Closes #2927.
Brendan Cully [Mon, 16 Jul 2007 16:44:52 +0000 (09:44 -0700)]
Check that spam expression has enough matches for its template. Closes #2927.

17 years agoGPGME: do not attempt to extract signatures unless gpgme_op_verify returned success.
Brendan Cully [Sun, 15 Jul 2007 00:26:16 +0000 (17:26 -0700)]
GPGME: do not attempt to extract signatures unless gpgme_op_verify returned success.

17 years agoAllow send-hooks to effectively change $from and $use_from
Aron Griffis [Mon, 9 Jul 2007 15:32:34 +0000 (11:32 -0400)]
Allow send-hooks to effectively change $from and $use_from

Signed-off-by: Aron Griffis <agriffis@n01se.net>
17 years agoClean up mx.c: init stat structs to zero
Aron Griffis [Mon, 9 Jul 2007 13:45:19 +0000 (09:45 -0400)]
Clean up mx.c: init stat structs to zero

prev_sb.st_size was initialized to zero if USE_FCNTL but not if
USE_FLOCK.  Silence the gcc warning for both cases by zeroing the stat
structures on the stack.

Other minor cleanups:
- clean up some whitespace
- convert return (foo) to return foo
- return r at the bottom of the function instead of testing values and
  returning them explicitly
- add vim modeline

Signed-off-by: Aron Griffis <agriffis@n01se.net>
17 years agoActually bail out, but wiht an ok return value.
Thomas Roessler [Tue, 10 Jul 2007 12:47:42 +0000 (14:47 +0200)]
Actually bail out, but wiht an ok return value.