Commit Graph

6683 Commits

Author SHA1 Message Date
Roland Illig
e5e3a8f87d * editcmd.c: Fixed whitespacing issues.
* editdraw.c: Likewise.
	* syntax.c: Likewise.
2005-02-07 20:32:17 +00:00
Roland Illig
15342acba1 * edit.c: Fixed some whitespacing issues. 2005-02-07 20:28:13 +00:00
Roland Illig
2a281ad18d * *.c: Removed unused parameters for static functions. Marked
unused parameters for global functions. Removed redundant
	comments.
2005-02-07 20:08:01 +00:00
Roland Illig
9004ac497f * po/ChangeLog: Applied trim_changelog.
* slang/ChangeLog: Likewise.
	* vfs/ChangeLog: Likewise.
2005-02-07 07:40:46 +00:00
Roland Illig
51156030fb * ChangeLog: Applied trim_changelog. 2005-02-07 07:33:47 +00:00
Roland Illig
05d2881a71 * *.c: Removed trailing whitespace. 2005-02-07 07:31:19 +00:00
Roland Illig
6916fd28a2 * NEWS: Added the changes between mc-4.6.1-pre3 and now. 2005-02-07 07:05:17 +00:00
Roland Illig
e8e0035587 * edit.h: Removed catstrs, as it is only used in editcmd.c.
* editcmd.c (catstrs): Changed declaration to be static.
2005-02-07 06:34:08 +00:00
Roland Illig
b49ac634f5 * editwidget.c: Don't use catstrs anymore. 2005-02-07 06:31:04 +00:00
Roland Illig
13737b1de1 * edit.c (user_menu): Don't use catstrs anymore. 2005-02-07 06:18:13 +00:00
Roland Illig
259485542a * syntax.c: Don't use catstrs anymore. 2005-02-07 06:11:15 +00:00
Roland Illig
64eed6e12b * edit.h (catstrs): Changed the return type to "const char *".
* editcmd.c (catstrs): Likewise.
	* edit.c (user_menu): Added const qualifiers.
	* editcmd.c: Likewise.
	* syntax.c: Likewise.
2005-02-07 06:02:59 +00:00
Roland Illig
a8de548480 Added a template for new C files. 2005-02-07 00:06:16 +00:00
Roland Illig
7733f432a4 * ext.c: Improved message formatting. 2005-02-07 00:01:15 +00:00
Roland Illig
c90e9d1b95 * edit.c: Improved message formatting. 2005-02-06 23:58:59 +00:00
Roland Illig
e6a4ffaba1 * widget.h: Added a new function button_get_text.
* widget.c: Likewise.
2005-02-06 23:08:02 +00:00
Roland Illig
ce99a5fc53 * achown.c: Call update_ownership instead of get_ownership. 2005-02-06 22:59:00 +00:00
Roland Illig
57c9733937 * achown.c (get_ownership): Renamed to update_ownership.
* achown.c (update_permissions): Update the permission widgets
	without accessing WButton->text directly.
	* achown.c (print_flags): Use update_permissions.
	* achown.c (chown_info_update): Likewise.
2005-02-06 22:55:37 +00:00
Roland Illig
c893d6e029 * achown.c (get_ownership): Simplified the code. Now it is
more independent of the WButton internals.
2005-02-06 21:26:05 +00:00
Roland Illig
3a40734373 * util.h (msglen): Converted from a function to a procedure.
* util.c (msglen): Changed variable names and did a speedup.
	* hotlist.c (add_new_entry_input): Using new msglen function.
	* hotlist.c (add_new_group_input): Likewise.
	* wtools.c (query_dialog): Likewise.
	* wtools.c (fg_input_dialog_help): Likewise.
2005-02-05 13:03:11 +00:00
Andrew V. Samoilov
711f268786 * utilunix.c (mc_realpath) [USE_SYSTEM_REALPATH]: Use realpath(). 2005-02-02 18:28:49 +00:00
Andrew V. Samoilov
2080aad45a * find.c: Implement non-recursive 'Find file' feature.
Original patch by Andrew Borodin <aborodin@vmail.ru> .
2005-02-02 18:27:05 +00:00
Andrew V. Samoilov
94b71a6339 * samba/include/proto.h: Adjust for the last changes.
* samba/lib/util.c: Comment out unused ra_type, in_group(),
get_numlist(), Atoic(), dns_to_netbios_name(), name_interpret(),
directory_exist(), file_size(), unix_format(), dos_format(),
close_low_fds(), name_ptr(), name_extract(), unix_do_match(),
unix_mask_match(), do_match(), mask_match(),
interpret_protocol(), readdirname(), is_in_path(),
set_namearray(), free_namearray(), fcntl_lock(), is_myname(),
set_remote_arch(), get_remote_arch(). align2(), out_ascii() and
out_data().
(reg_get_subkey): Remove.
(reg_split_key): Remove.

* samba/lib/system.c: Comment out sys_lstat(), sys_fseek(),
sys_ftell(), sys_readdir(), sys_getwd(), sys_chown(), sys_random()
and sys_srandom().

* samba/libsmb/clientgen.c (cli_qpathinfo): Comment out.
(cli_qpathinfo2): Comment out.
(cli_printjob_del): Remove.
(cli_print_queue): Remove.
(cli_dskattr): Comment out.
2005-02-02 12:52:33 +00:00
Andrew V. Samoilov
eef0551cec Add missing entry
* utilunix.c (init_groups) [HAVE_GETGROUPLIST]: Use getgrouplist().
2005-02-01 12:30:40 +00:00
Andrew V. Samoilov
172cead7fb * utilunix.c (init_groups): Use glib memory allocation functions. 2005-02-01 12:04:05 +00:00
Andrew V. Samoilov
a7a42c3d8b * samba/lib/username.c (map_username): Comment out.
(user_in_list): Ditto.
2005-02-01 12:02:34 +00:00
Roland Illig
3973e33cc2 * view.c: Eliminated two global variables and put them into the
WView structure.
2005-01-31 22:01:53 +00:00
Roland Illig
71ace6eaaf * view.c: Removed trailing whitespace and fixed a typo in a comment. 2005-01-30 21:17:29 +00:00
Roland Illig
6dc6158ff1 * edit.h: Removed NO_INLINE_GETBYTE conditional. The name was
misleading, as it really meant INLINE_GETBYTE. Furthermore,
	it has not been working since the split of edit.h into edit-widget.h.
	* edit.c: Likewise.
2005-01-30 20:34:58 +00:00
Miguel de Icaza
324f4c5644 2005-01-29 Miguel de Icaza <miguel@novell.com>
* utilunix.c (init_groups): Added support for getgrouplist patch
	from Stefan Gohmann <gohmann@univention.de>.

2005-01-29  Miguel de Icaza  <miguel@novell.com>

	* configure.ac: Check for getgrouplist API call.
2005-01-30 05:06:13 +00:00
Roland Illig
020455853d * editdraw.c (edit_status): Changed some variables from size_t to
int to avoid GCC warnings.
2005-01-28 01:34:48 +00:00
Roland Illig
9558c7178f * src/info.c (info_show_info): Enabled display of the device number,
for the case that the column in the directory listing is too
	short. This had been disabled since 1994, for no obvious reason
	and without any comment.
	* src/screen.c (format_device_number): Added. Converts a device number
	into a bounded string.
	* screen.c (string_file_size): Support for larger device numbers
	(and for non-Linux systems).
	* vfs/cpio.c (cpio_read_crc_head): Fixed device number handling for
	non-Linux systems.
	* vfs/fish.c (fish_dir_load): Likewise.
	* vfs/utilvfs.c (vfs_parse_ls_lga): Likewise.
2005-01-27 23:32:13 +00:00
Roland Illig
7a60de0618 * unixcompat.h: Added makedev macro. 2005-01-27 23:02:24 +00:00
Roland Illig
7e498cbc2e * configure.ac: Add checks for C headers <sys/mkdev.h> and
<sys/sysmacros.h> to support major/minor arithmetics on
	device numbers.
2005-01-27 22:42:55 +00:00
Roland Illig
728951fd34 * unixcompat.h (major/minor): Added support for AIX. 2005-01-27 22:19:48 +00:00
Roland Illig
067e407cf7 * editdraw.c (edit_status): Fixed drawing bug with ncurses. 2005-01-27 22:14:58 +00:00
Roland Illig
ff3ca5ecb2 * tty.h (printwstr): If LEN is not positive, ignore the request. 2005-01-27 22:01:52 +00:00
Roland Illig
ff6e206b42 * tty.h (printwstr): Added a function to print a string
left-aligned in a bounded box.
2005-01-27 21:44:00 +00:00
Roland Illig
0e1609c2f9 * unixcompat.h: Provides macros and functions that are missing in
some Unix variants.
	* Makefile.am: Added unixcompat.h.
2005-01-25 22:54:41 +00:00
Roland Illig
ccc1b17f7d * dialog.h (widget_msg_t): Added WIDGET_RESIZED to inform widgets
that they had been resized.
	* dialog.c (widget_set_size): Send a WIDGET_RESIZED message after
	setting the size.
	* layout.c (panel_do_cols): Don't explicitly update the
	bytes_per_line of a hexview WView.
	* view.h (view_update_bytes_per_line): Removed from the interface
	to WView.
	* view.c (view_update_bytes_per_line): Declared as `static'.
	* view.c (view_callback): Call update_bytes_per_line when the
	WView is initialized and whenever a WIDGET_RESIZED message is
	received.
2005-01-25 22:40:50 +00:00
Andrew V. Samoilov
fe0cc18988 * samba/Makefile.in: Remove BINDIR and SBINDIR.
* samba/param/loadparm.c: Comment out some more unused code.
2005-01-25 09:12:17 +00:00
Andrew V. Samoilov
82a3bf3d81 * samba/param/loadparm.c (print_parameter): Remove.
(is_default): Remove.
(dump_globals): Remove.
(dump_a_service): Remove.
(lp_dump): Remove.
(lp_dump_one): Remove.
(lp_remove_service): Remove.
(lp_copy_service): Remove.
2005-01-25 08:13:07 +00:00
Roland Illig
c1e388d724 * systems.txt: A list of system configurations that we have access
to for testing the Midnight Commander.
2005-01-21 11:26:24 +00:00
Andrew V. Samoilov
a1502a0a5f Remove genrand.c and util_unistr.c. 2005-01-20 16:48:36 +00:00
Andrew V. Samoilov
981d02ba5f * Makefile.am (SAMBA_DIST): Remove lib/genrand.c and lib/util_unistr.c.
* samba/Makefile.in (SAMBAFILES): Remove lib/genrand.o and
lib/util_unistr.o.
2005-01-20 16:44:27 +00:00
Andrew V. Samoilov
1ed4f8c110 * samba/libsmb/clientgen.c (cli_oem_change_password): Removed.
* samba/libsmb/smbencrypt.c (make_oem_passwd_hash): Removed.
* samba/lib/util_sock.c (reset_globals_after_fork): Removed.
2005-01-20 16:32:23 +00:00
Andrew V. Samoilov
d83d988c73 * samba/lib/util_file.c: Comment out all but fgets_slash(). 2005-01-20 16:17:34 +00:00
Andrew V. Samoilov
eaca209b7c * util_file.c: Comment out all but fgets_slash(). 2005-01-20 15:06:29 +00:00
Andrew V. Samoilov
4ea1aba1e0 * samba/lib/util.c (remote_machine, local_machine): Make static const
char * instead of fstring.
2005-01-20 11:23:07 +00:00
Andrew V. Samoilov
43414d8182 * samba/lib/util.c: Comment out some more unused functions.
(global_myworkgroup): Remove unused variable.
(def_finfo): Make const.
(remote_proto, remote_arch): Make const char * instead of
fstring.
* samba/libsmb/clientgen.c (interpret_long_filename): Fix
def_finfo declaration.
2005-01-20 08:57:22 +00:00