Commit Graph

3606 Commits

Author SHA1 Message Date
Andrew V. Samoilov
328cbcb954 * edit.h (edit_execute_cmd): Declare it here.
* edit.c: Remove edit_execute_cmd declaration.
(edit_execute_cmd): Use edit_print_string instead of edit_printf.

* editcmd.c:  Remove edit_execute_cmd declaration.
(edit_search_dialog): Eliminate tsearch_text.
(edit_search_cmd): edit_search_dialog gives g_malloc()ed exp.
Use g_strdup/g_free instead of strdup/free.
(edit_mail_dialog): quick_dialog use g_strdup, so g_free
must be used.

* bookmark.c (book_mark_clear): Eliminate rend.
It's only written but never read.
(book_mark_flush): Likewise.
(book_mark_inc): Likewise.
(book_mark_dec): Likewise.
2001-11-05 09:23:05 +00:00
Andrew V. Samoilov
dd5ccea5d6 * vfs.c (mc_return_cwd): Memory leak fixed. 2001-11-02 18:18:14 +00:00
Peteris Krisjanis
4a54959e90 U 2001-11-01 21:06:24 +00:00
Andrew V. Samoilov
a802b107ae * samba/smblib/pwd_cache.c (pwd_read): Commented out.
* samba/Makefile.in (SAMBAFILES): Remove lib/getsmbpass.o.
* samba/lib/getsmbpass.c: Removed.
2001-11-01 13:31:52 +00:00
Andrew V. Samoilov
ddcd0ee421 * samba/smblib/pwd_cache.c (pwd_read): Commented out.
* samba/Makefile.in (SAMBAFILES): Remove lib/getsmbpass.o.
* samba/lib/getsmbpass.c: Removed.
2001-11-01 13:12:24 +00:00
Andrew V. Samoilov
2cc50a14d6 Don't include "tcputil.h".
(loaddir): Symplify.
(fake_share_stat): Declare server_url const.
Use "%4o" for st_mode.
(fake_server_stat): Likewise.  Return -1 if server_list != True.
2001-10-30 15:24:01 +00:00
Andrew V. Samoilov
0b88e8d6ce (myhostname): Declare extern.
(get_master_browser): Declare ipzero extern. By drk@sgi.com.
http://bugzilla.gnome.org/show_bug.cgi?id=60933
2001-10-30 14:40:46 +00:00
Andrew V. Samoilov
a04a0a6b4b * smbfs.c: Include <config.h> before everything else. 2001-10-30 12:20:11 +00:00
Andrew V. Samoilov
a9b290f926 * cpio.c (cpio_read_bin_head): Release name if mc_read fails.
(cpio_read_crc_head): Likewise.
2001-10-30 11:42:44 +00:00
Pavel Roskin
3fe616ace4 * lib/mc.ext.in: Add support for Netpbm files. 2001-10-30 08:08:04 +00:00
Andrew V. Samoilov
1cd0a043a7 * charsets.c (load_codepages_list): Use glib memory allocation
functions.
(free_codepages_list) [HAVE_MAD]: New function to release
memory allocated in load_codepages_list.
* charsets.h: Declare free_codepages_list.

* main.c [HAVE_CHARSET]: Include charsets.h.
(main) [HAVE_MAD && HAVE_CHARSET]: Call free_codepages_list.
(program_name): Commented out.
2001-10-29 13:40:00 +00:00
Pavel Roskin
3b32c84134 Add .deps 2001-10-29 06:27:31 +00:00
Marco Ciampa
69fa768d00 *** empty log message *** 2001-10-26 16:11:30 +00:00
Andrew V. Samoilov
66600cad98 * TODO: Typo fixed 2001-10-26 11:32:41 +00:00
Andrew V. Samoilov
58f1577542 * key.c (push_char): Fix buffer length calculation.
By drk@sgi.com.
http://bugzilla.gnome.org/show_bug.cgi?id=60932

(define_sequence): Likewise.
(key_define_t): Add const declaration.
2001-10-26 10:21:25 +00:00
Peteris Krisjanis
9bdfa6d833 U 2001-10-26 01:33:21 +00:00
Christophe Merlet
3f89da54f7 Updated French translation. 2001-10-25 20:32:12 +00:00
Andrew V. Samoilov
888a4f073b * cpio.c (cpio_read_crc_head): Fix buffer overflow.
(cpio_read_oldc_head): Likewise. By drk@sgi.com.
http://bugzilla.gnome.org/show_bug.cgi?id=60933

* (cpio_read_oldc_head): Release name if mc_read fails.
2001-10-25 14:24:29 +00:00
Andrew V. Samoilov
1ff74e7a5b * slang/slvideo.c (SLtt_set_color): Eliminate C++ comments.
http://bugzilla.gnome.org/show_bug.cgi?id=60935
By drk@sgi.com.
2001-10-25 13:32:14 +00:00
Andrew V. Samoilov
3767e8e5df * tcputil.c (rpc_get): Add missing va_end()s. Fix memory leaking. 2001-10-25 07:57:15 +00:00
Andrew V. Samoilov
fcce6d2bb0 * doc/mc.1.in: Document "%p" macro. 2001-10-25 06:49:39 +00:00
Pavel Roskin
8644c630f0 * configure.in: Move AC_FUNC_MMAP before it's used indirectly.
Allow using --without-mmap.
* INSTALL: Document --without-mmap.
2001-10-25 03:46:59 +00:00
Christian Rose
721babff37 2001-10-24 Christian Rose <menthos@menthos.com>
* sv.po: Updated Swedish translation.
2001-10-24 13:11:48 +00:00
Stanislav Visnovsky
dc2bfe78e7 2001-10-24 Stanislav Visnovsky <visnovsky@nenya.ms.mff.cuni.cz>
* sk.po: Updated Slovak translation.
2001-10-24 11:12:24 +00:00
Andrew V. Samoilov
91a56f5470 * configure.in: Resurrect ALL_LINGUAS test, to allow specify list
of languages to be installed by setting env variable before
configure. If it is empty, it defaults to full list.
By Alex Tkachenko <alex@bcs.zp.ua>.
2001-10-24 08:38:03 +00:00
Andrew V. Samoilov
a918318c9d * smbfs.h: Declare smbfs_set_debug. 2001-10-24 08:16:16 +00:00
Pavel Roskin
c5df6b4367 * util_nt.c (_win32Trace): Add missing va_end(). 2001-10-23 17:10:16 +00:00
Pavel Roskin
edf0504087 * edit.c (user_menu): If the error file is missing, treat it as
success.  Truncate block file unconditionally.
2001-10-23 05:40:13 +00:00
Pavel Roskin
b1c57095b2 * edit.c: Stop using _EDIT_C definition. Move variable
declarations from edit.h, make static or eliminate if possible.
Report errors immediately.
* edit.h: Likewise.
* editwidget.c (edit): Don't report errors from edit_init(),
they are reported in place.
2001-10-23 01:46:53 +00:00
Pavel Roskin
f0490b2a06 * main.h: Declare view_one_file and edit_one_file. 2001-10-23 01:39:25 +00:00
Pavel Roskin
7b0a30e035 * es.po: Update.
* es_ES.po: Likewise.
2001-10-22 22:27:24 +00:00
Andrew V. Samoilov
dd2ef8b4fb * dialog.h: Include global.h.
(message): Specify __attribute__.
2001-10-22 15:37:27 +00:00
Zbigniew Chyla
8f3159618d Updated Polish translation 2001-10-22 10:19:57 +00:00
Keld Simonsen
857cfacc37 updates
balsa/po/da.po gnome-pim/po/da.po gnomeicu/po/da.po
gnumeric/po/da.po mc/po/da.po
2001-10-21 00:48:00 +00:00
Pavel Roskin
943bae02ad * editcmd.c (sprintf_p): Declare with the printf attribute.
Make static.
2001-10-20 07:20:30 +00:00
Pavel Roskin
399d996408 * edit.h: Declare edit_printf() with the printf attribute. 2001-10-20 07:16:50 +00:00
Pavel Roskin
2b9f5265b4 * ftpfs.c (command): Declare with the printf attribute.
* undelfs.c: Remove declaration of print_vfs_message().
2001-10-20 07:12:55 +00:00
Pavel Roskin
0c52fb0f99 * fish.c (file_store): Fix incorrect format string
for print_vfs_message().
* ftpfs.c (file_store): Likewise.
2001-10-20 07:04:31 +00:00
Pavel Roskin
3cdc394c36 * main.h (print_vfs_message): Specify __attribute__. 2001-10-20 07:01:08 +00:00
Pavel Roskin
cf59af66de * fish.c (command): Declare with the printf attribute to enable
warnings in gcc.
(file_store): Cast all expressions with file sizes to unsigned
long.  This should fix uploading when large file support is on.
File size is limited to 4096 * ULONG_MAX for now.
2001-10-20 03:41:31 +00:00
Pavel Roskin
6eef7a34e7 * global.h: Define __attribute__ to an empty string for non-gcc
compilers so that it's safe to use.
2001-10-20 03:38:41 +00:00
Pavel Roskin
5062e120a5 * syntax/sh.syntax: Highlight reserved words inside backticks.
Use the same wholechars settings for reserved words and
commands.  Recognize more words.  Recognize function definitions
without "function" or without "()".  Use brightmagenta instead
of brightblue.
2001-10-19 07:37:49 +00:00
Pavel Roskin
c932c4610a * edit.c (check_file_access): Only allow to edit regular files.
Use stat() before open() to prevent hangs on pipes, use fstat()
afterwards if stat() was unsuccessful.
2001-10-18 09:35:22 +00:00
Andrew V. Samoilov
6c1fabe920 * mc.hint.ru: Fix typo. 2001-10-18 09:34:44 +00:00
Andrew V. Samoilov
0ff4b8ae77 * samba/configure.in: Don't check readline.h, history.h and
libreadline.
2001-10-18 09:24:28 +00:00
Pavel Roskin
2503eb0342 * view.c (view_hook): Warning fix. 2001-10-18 08:42:20 +00:00
Pavel Roskin
1773a0fee0 * view.c (init_growing_view): Revert last change, it was wrong.
(view_hook): Don't check that the file is regular - it's now
done in do_view_init().  This fixes update problem in quick view
when moving cursor from a regular file to a directory.
2001-10-18 08:39:41 +00:00
Pavel Roskin
37e595b6ba * view.c (do_view_init): Only accept regular files. Use stat(),
not fstat() because open() would hang on pipes.  Avoid opening
the file twice.
(init_growing_view): Take file descriptor, not the filename.
(load_view_file): Likewise.
2001-10-18 06:23:02 +00:00
Pavel Roskin
fa7b354b12 * configure.in: When checking for "nroff -mandoc" support, don't
use /dev/null as input file, use stdin.  Some versions of nroff
(e.g. groff-1.16.1) don't accept special files.
2001-10-18 04:54:42 +00:00
Pavel Roskin
ddcec565ec * lib/mc.ext.in: Treat Makefile.PL as a Perl program, not as a
Makefile.  Don't allow any suffixes after "Makefile".
2001-10-16 07:30:33 +00:00