Ticket #????: code cleanup before 4.8.4 release.

Sync with gnulib c25bdbae48977a527dff69150f59fb0746d31b51:
fs usage: check for GNU/Linux statvfs problem dynamically.

* src/filemanager/mountlist.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
Define STAT_STATFS2_BSIZE too, since in this case the code now
checks dynamically whether statvfs is reliable, falling back on
Linux-style statfs otherwise.
(statvfs_works): New function, for dynamically testing statvfs.
(get_fs_usage) [STAT_STATVFS]: Use it.
* src/filemanager/filegui.c (filegui__check_attrs_on_fs): apply the same
statvfs_works function.
* m4.include/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
statvfs on GNU/Linux hosts, since it's now done dynamically.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Sync with gnulib b1fac377605c0eef8844fc8d3818d360f37d6fa4:

fs usage: fix block size returned on older Linux 2.6.

* src/filemanager/mountlist.c: Fall back to (struct statfs).f_frsize
which is available since Linux 2.6.
* m4.include/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
when the member is available so it can be used as a fallback.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Sync with gnulib 06b335ade65c8fe60fee8b9e18b670bb54ed924a:

Write "Mac OS X" instead of "MacOS X".

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
src/filemanager/mountlist.c: apply mc code indentation policy.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Sync with gnulib 0a6dafee2bb8f69a931345a1f67d835ee5062967

Avoid needless check on GNU/Linux.

* m4.include/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
on GNU/Linux systems, since it can't possibly work.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Sync with gnulib 2ab2617ee340ff35a9a4c713004fb302868d41b0

* src/filemanager/mountlist.c [STAT_STATVFS && (__linux__ && (__GLIBC__||__UCLIBC__))]:
Undefine STAT_STATFS2_FRSIZE to exclude code not used in this case.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Ticket #2538: mcviewer: unused result of str_term_width1().

And reduce size of buffer used to show file size.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Fix typos.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Fix of f13 key handling.

ViewFile doesn't have the default key, and f13 is key for ViewRaw
which is handled in panel not.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Fix of 'External panelize' dialog: update of 'Command' field content after mouse click.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
Remove unused assignment to current_dir.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Tweak of select codepage code in case of --disable-charset

...in mceditor, mcviewer and mcdiffviewer.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Ticket #2839: Fix keybindings for Quit command of mcedit.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
(exec_extension): ret rid of double filename conversion.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Code cleanup: removed unused variables, removed unnedeed code and so on

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Avoid compiler warning about unused variables in case of --without-subshell.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Code indentation.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Makefile.ams cleanup.

Set defines via CPPFLAGS variable not via CFLAGS one.
Use AM_CPPFLAGS and AM_CFLAGS variables instead of per-target ones.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
FIXFOR: Ticket #????: code cleanup before 4.8.4 release.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
(mcview_moveto_eol): comparison of unsigned expression < 0 fixup.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>