Commit Graph

1863 Commits

Author SHA1 Message Date
Roland Illig
3da9abba54 * Code cleanup: Added const qualifier for variables and
function declarations where possible. No functional changes.
2004-08-30 00:02:36 +00:00
Roland Illig
7bff9337c0 * Code cleanup: Added const qualifier for variables and
function declarations where possible. Additionally wrapped
	the calls to putenv() by g_strdup().
2004-08-29 23:59:17 +00:00
Roland Illig
3f3c24f511 * view.c (move_backward2): Removed unused variables. 2004-08-29 23:56:53 +00:00
Roland Illig
1d573d9059 * Code cleanup: Added const qualifier for variables and
function declarations where possible. No functional changes.
2004-08-29 23:54:47 +00:00
Roland Illig
3957415603 * Code cleanup: Added const qualifier for variables and
function declarations where possible. No functional changes.
2004-08-29 23:39:38 +00:00
Roland Illig
03913065b4 * Code cleanup: Added const qualifier for variables and
function declarations where possible. No functional changes.
2004-08-29 23:27:40 +00:00
Roland Illig
17714fd8d9 * Code cleanup: Added const qualifier for variables and
function declarations where possible. No functional changes.
2004-08-29 23:20:01 +00:00
Roland Illig
4c1ea14493 * Code cleanup: Added const qualifier for variables and
function declarations where possible. Now using two temp
	variables: one for strings that need not be freed (temp) and
	one for strings that need to (temp2).
2004-08-29 22:55:57 +00:00
Roland Illig
5697bd2a92 * Code cleanup: Added const qualifier for variables and
function declarations where possible. No functional changes.
2004-08-29 22:51:02 +00:00
Roland Illig
d6d457ba9a * dialog.c: made the callback parameter of find_widget_type correctly typed. 2004-08-29 22:44:17 +00:00
Roland Illig
b75c5a31a3 * dialog.h: marked the title as "notconst", as it is freed
by the destructor.
2004-08-29 22:43:27 +00:00
Roland Illig
5c4add0e6e * Code cleanup: Added const qualifier for variables and
function declarations where possible. No functional changes.
2004-08-29 22:38:06 +00:00
Roland Illig
b86b6a7bc7 * background.c (do_background): Fixed file descriptor leak. 2004-08-29 18:57:31 +00:00
Roland Illig
243e84706e * Code cleanup: Added const qualifier for variables and
function declarations where possible. No functional changes.
2004-08-29 18:45:56 +00:00
Roland Illig
4baefa09c2 * Code cleanup: Added const qualifier for variables and
function declarations where possible. No functional changes.
2004-08-29 17:15:23 +00:00
Roland Illig
8458240147 * Code cleanup: Added const qualifier for variables and
function declarations where possible. No functional changes.
2004-08-29 16:42:40 +00:00
Roland Illig
6f68fa3082 * cmd.c (do_link): Fixed memory leak and cleaned up code. 2004-08-26 00:12:16 +00:00
Roland Illig
1544da13a1 Added missing ChangeLog entries from 2004-08-16. 2004-08-24 12:58:56 +00:00
Andrew V. Samoilov
6ca233ecea * utilunix.c (tilde_expand): Use more suitable function
g_strndup, instead sequence g_malloc, strncpy, name[len] = '\0'
2004-08-20 21:28:05 +00:00
Roland Illig
fb4fd57695 * view.c (move_backward2): Bugfix: Only move the view if the cursor would be out-of-view. 2004-08-19 19:34:16 +00:00
Roland Illig
a540dee8b5 Fixed misleading indentation. 2004-08-19 19:19:04 +00:00
Roland Illig
ea14b320f7 * util.h (move_backward2): Fixed endless loop. Cleaned up code. The only case that's left with the old code is text mode with line wrapping. (move_backward2_textmode_wrap): The special case of moving some lines up in text mode with line wrapping enabled. 2004-08-19 19:16:57 +00:00
Roland Illig
d3a5b40c19 * util.h: Added the function free_after for easier handling of dynamically allocated strings. 2004-08-19 11:35:56 +00:00
Roland Illig
c6e3dde5a5 * util.c: Added the function str_replace, which replaces all occurences of a character in a string. 2004-08-19 11:26:48 +00:00
Andrew V. Samoilov
fecb161283 x.c (mc_tmpdir): Fix typos in comment.
Set MC_TMPDIR environment variable for vfs scripts.
        Clear error after successful test of mc temp dir.
2004-08-18 20:34:01 +00:00
Roland Illig
226177cf11 "make uninstall" removes the symlinks bin/mcedit and bin/mcview. 2004-08-18 20:22:59 +00:00
Andrew V. Samoilov
03976121d9 * screen.c (paint_frame): Fix possible buffer overflow. 2004-08-18 19:55:47 +00:00
Roland Illig
bc8127ded6 Added more const-ness. 2004-08-18 08:58:37 +00:00
Roland Illig
25d3b4b489 Added a FIXME comment concerning the interpretation of the "cd" command. 2004-08-17 20:08:07 +00:00
Andrew V. Samoilov
6776c2cdb9 do_background: Use O_RDWR when opening the file '/dev/null'
for replacement standard streams.
2004-08-17 20:01:58 +00:00
Andrew V. Samoilov
ff6051511f ckground.c (do_background): Use O_RDWR when opening the file '/dev/null'
for replacement standard streams.
2004-08-17 20:01:30 +00:00
Andrew V. Samoilov
d3d15be22f utilunix.c(mc_tmpdir): Check return value of getpwuid() for NULL. 2004-08-17 18:46:33 +00:00
Andrew V. Samoilov
72488a9d6c mc_tmpdir: Check return value of getpwuid() for NULL. 2004-08-17 18:45:47 +00:00
Roland Illig
756067410f Removed trailing comma in enumeration. 2004-08-17 11:13:10 +00:00
Roland Illig
2ebf787653 Renamed version to show_version to avoid name clashes. 2004-08-17 10:40:16 +00:00
Roland Illig
207f7d126c Even more const-ification. 2004-08-17 00:00:32 +00:00
Roland Illig
5c74367969 Added more const-ness to variables. 2004-08-16 23:48:46 +00:00
Roland Illig
1105b8e941 Splittet the vfs.h header into a user's part (vfs.h) and an implementor's part (vfs-impl.h). 2004-08-16 23:25:49 +00:00
Roland Illig
9d41314d09 Added more const-ness to print_vfs_message. 2004-08-16 18:31:30 +00:00
Roland Illig
a22afa7a72 Added more const-ness to variables. 2004-08-16 18:31:05 +00:00
Roland Illig
9dfb30636e Compacted and commented the code in do_try_to_select. 2004-08-16 18:30:34 +00:00
Roland Illig
511c710fe6 Added explicit initializers for global variables. 2004-08-16 18:25:16 +00:00
Roland Illig
2c77aa7e1c Documented x_basename and added const. 2004-08-16 18:19:37 +00:00
Roland Illig
2399a1604f Removed unnecessary type cast. 2004-08-16 17:45:59 +00:00
Roland Illig
493febff35 Added more const-ness to a variable. 2004-08-16 17:45:38 +00:00
Roland Illig
13e298c2ea Replaced (char *) 0 by NULL. 2004-08-16 17:44:14 +00:00
Roland Illig
b2605e09e9 Code cleanup concerning PAUSE_OPTIONS. 2004-08-16 17:43:36 +00:00
Roland Illig
d003fcb1e0 Use memmove instead of memcpy for overlapping objects. 2004-08-16 17:42:47 +00:00
Roland Illig
748279de99 Added more const-ness to the function arguments. 2004-08-16 16:22:35 +00:00
Roland Illig
bfb2047463 Removed unnecessary type cast. 2004-08-16 16:22:14 +00:00