mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-01 00:54:24 +03:00
* find.c: Fix warnings reported by gcc 4.0.0.
* mountlist.c: Likewise. * screen.c: Likewise. * view.c: Likewise.
This commit is contained in:
parent
8b6a126125
commit
9d44b75ad5
@ -1,5 +1,10 @@
|
||||
2005-05-20 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* find.c: Fix warnings reported by gcc 4.0.0.
|
||||
* mountlist.c: Likewise.
|
||||
* screen.c: Likewise.
|
||||
* view.c: Likewise.
|
||||
|
||||
* dialog.c (dlg_select_widget): Remove first argument, it's
|
||||
redundant. Adjust all callers.
|
||||
(dlg_replace_widget): Likewise.
|
||||
|
@ -1067,7 +1067,7 @@ find_file (char *start_dir, char *pattern, char *content, char **dirname,
|
||||
void
|
||||
do_find (void)
|
||||
{
|
||||
char *start_dir, *pattern, *content;
|
||||
char *start_dir = NULL, *pattern = NULL, *content = NULL;
|
||||
char *filename, *dirname;
|
||||
int v, dir_and_file_set;
|
||||
regex_t rx; /* Compiled content_pattern to search inside files */
|
||||
|
@ -609,6 +609,7 @@ my_statfs (struct my_statfs *myfs_stats, const char *path)
|
||||
}
|
||||
|
||||
if (entry){
|
||||
memset (&fs_use, 0, sizeof (struct fs_usage));
|
||||
get_fs_usage (entry->me_mountdir, &fs_use);
|
||||
|
||||
myfs_stats->type = entry->me_dev;
|
||||
|
@ -1329,7 +1329,7 @@ use_display_format (WPanel *panel, const char *format, char **error, int isstatu
|
||||
#define MAX_EXPAND 4
|
||||
int expand_top = 0; /* Max used element in expand */
|
||||
int usable_columns; /* Usable columns in the panel */
|
||||
int total_cols;
|
||||
int total_cols = 0;
|
||||
const char *expand_list [MAX_EXPAND]; /* Expand at most 4 fields. */
|
||||
int i;
|
||||
format_e *darr, *home;
|
||||
|
@ -739,7 +739,7 @@ view_percent (WView *view, offset_type p)
|
||||
{
|
||||
const int xpos = view->widget.cols - view->dpy_frame_size - 4;
|
||||
int percent;
|
||||
gboolean exact;
|
||||
gboolean exact = FALSE;
|
||||
offset_type filesize;
|
||||
|
||||
filesize = view_get_filesize_with_exact (view, &exact);
|
||||
@ -793,7 +793,7 @@ view_status (WView *view)
|
||||
}
|
||||
if (w > 62) {
|
||||
offset_type filesize;
|
||||
gboolean exact;
|
||||
gboolean exact = FALSE;
|
||||
filesize = view_get_filesize_with_exact (view, &exact);
|
||||
widget_move (view, view->dpy_frame_size, view->dpy_frame_size + 43);
|
||||
if (exact) {
|
||||
@ -1606,7 +1606,7 @@ search (WView *view, char *text,
|
||||
/* the position returned after the line has been read */
|
||||
offset_type forward_line_start;
|
||||
offset_type reverse_line_start;
|
||||
offset_type t;
|
||||
offset_type t = 0;
|
||||
/* Clear interrupt status */
|
||||
got_interrupt ();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user