Indentation.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2012-12-21 13:13:52 +04:00
parent 60c9abfd0e
commit fa421e065a
9 changed files with 13 additions and 7 deletions

View File

@ -388,7 +388,7 @@ mc_search (const gchar * pattern, const gchar * str, mc_search_type_t type)
return FALSE;
search = mc_search_new (pattern, -1);
if (search == NULL )
if (search == NULL)
return FALSE;
search->search_type = type;

View File

@ -137,6 +137,7 @@ typedef struct vfs_class
void *data; /* this is for filesystem's own use */
int verrno; /* can't use errno because glibc2 might define errno as function */
/* *INDENT-OFF* */
int (*init) (struct vfs_class * me);
void (*done) (struct vfs_class * me);
@ -193,6 +194,7 @@ typedef struct vfs_class
int (*ctl) (void *vfs_info, int ctlop, void *arg);
int (*setctl) (const vfs_path_t * vpath, int ctlop, void *arg);
/* *INDENT-ON* */
} vfs_class;
/*

View File

@ -124,6 +124,7 @@ struct vfs_s_subclass
FILE *logfile;
int flush; /* if set to 1, invalidate directory cache */
/* *INDENT-OFF* */
int (*init_inode) (struct vfs_class * me, struct vfs_s_inode * ino); /* optional */
void (*free_inode) (struct vfs_class * me, struct vfs_s_inode * ino); /* optional */
int (*init_entry) (struct vfs_class * me, struct vfs_s_entry * entry); /* optional */
@ -149,6 +150,7 @@ struct vfs_s_subclass
int (*linear_start) (struct vfs_class * me, vfs_file_handler_t * fh, off_t from);
ssize_t (*linear_read) (struct vfs_class * me, vfs_file_handler_t * fh, void *buf, size_t len);
void (*linear_close) (struct vfs_class * me, vfs_file_handler_t * fh);
/* *INDENT-ON* */
};
/*** global variables defined in .c file *********************************************************/

View File

@ -615,7 +615,8 @@ check_progress_buttons (FileOpContext * ctx)
/* {{{ File progress display routines */
void
file_op_context_create_ui (FileOpContext * ctx, gboolean with_eta, filegui_dialog_type_t dialog_type)
file_op_context_create_ui (FileOpContext * ctx, gboolean with_eta,
filegui_dialog_type_t dialog_type)
{
FileOpContextUI *ui;

View File

@ -1054,7 +1054,7 @@ quit_cmd_internal (int quiet)
#ifdef HAVE_SUBSHELL_SUPPORT
if (!mc_global.tty.use_subshell)
stop_dialogs ();
else if ((q = exit_subshell () ? 1 : 0) != 0)
else if ((q = exit_subshell ()? 1 : 0) != 0)
#endif
stop_dialogs ();
}

View File

@ -811,7 +811,8 @@ read_file_system_list (int need_fs_type)
break;
me = g_malloc (sizeof (*me));
me->me_devname = g_strdup (fi.device_name[0] != '\0' ? fi.device_name : fi.fsh_name);
me->me_devname =
g_strdup (fi.device_name[0] != '\0' ? fi.device_name : fi.fsh_name);
me->me_mountdir = g_strdup (re != NULL ? re->name : fi.fsh_name);
me->me_type = g_strdup (fi.fsh_name);
me->me_type_malloced = 1;

View File

@ -570,7 +570,7 @@ main (int argc, char *argv[])
if (mc_global.midnight_shutdown)
exit_code = EXIT_SUCCESS;
else
exit_code = do_nc () ? EXIT_SUCCESS : EXIT_FAILURE;
exit_code = do_nc ()? EXIT_SUCCESS : EXIT_FAILURE;
/* Save the tree store */
(void) tree_store_save ();