Ticket #3431: add missing default cases.

Introduce -Wswitch-default check.

Some minor cosmetics.

Thanks Andreas Mohr <and at gmx dot li> for original patch.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2015-04-19 13:57:38 +03:00
parent 39fec422c2
commit 2789e6e390
52 changed files with 193 additions and 45 deletions

View File

@ -437,7 +437,7 @@ convert_from_utf_to_current (const char *str)
GIConv conv;
const char *cp_to;
if (!str)
if (str == NULL)
return '.';
cp_to = get_codepage_id (mc_global.source_codepage);
@ -454,12 +454,13 @@ convert_from_utf_to_current (const char *str)
case ESTR_FAILURE:
ch = '.';
break;
default:
break;
}
str_close_conv (conv);
}
return ch;
}
/* --------------------------------------------------------------------------------------------- */
@ -470,14 +471,12 @@ convert_from_utf_to_current_c (const int input_char, GIConv conv)
unsigned char str[UTF8_CHAR_LEN + 1];
unsigned char buf_ch[UTF8_CHAR_LEN + 1];
unsigned char ch = '.';
int res = 0;
int res;
res = g_unichar_to_utf8 (input_char, (char *) str);
if (res == 0)
{
return ch;
}
str[res] = '\0';
switch (str_translate_char (conv, (char *) str, -1, (char *) buf_ch, sizeof (buf_ch)))
@ -489,7 +488,10 @@ convert_from_utf_to_current_c (const int input_char, GIConv conv)
case ESTR_FAILURE:
ch = '.';
break;
default:
break;
}
return ch;
}
@ -500,8 +502,7 @@ convert_from_8bit_to_utf_c (const char input_char, GIConv conv)
{
unsigned char str[2];
unsigned char buf_ch[UTF8_CHAR_LEN + 1];
int ch = '.';
int res = 0;
int ch;
str[0] = (unsigned char) input_char;
str[1] = '\0';
@ -509,21 +510,20 @@ convert_from_8bit_to_utf_c (const char input_char, GIConv conv)
switch (str_translate_char (conv, (char *) str, -1, (char *) buf_ch, sizeof (buf_ch)))
{
case ESTR_SUCCESS:
res = g_utf8_get_char_validated ((char *) buf_ch, -1);
if (res < 0)
{
ch = buf_ch[0];
int res;
res = g_utf8_get_char_validated ((char *) buf_ch, -1);
ch = res >= 0 ? res : buf_ch[0];
break;
}
else
{
ch = res;
}
break;
case ESTR_PROBLEM:
case ESTR_FAILURE:
default:
ch = '.';
break;
}
return ch;
}
@ -533,7 +533,6 @@ int
convert_from_8bit_to_utf_c2 (const char input_char)
{
unsigned char str[2];
unsigned char buf_ch[UTF8_CHAR_LEN + 1];
int ch = '.';
GIConv conv;
const char *cp_from;
@ -546,30 +545,28 @@ convert_from_8bit_to_utf_c2 (const char input_char)
if (conv != INVALID_CONV)
{
int res = 0;
unsigned char buf_ch[UTF8_CHAR_LEN + 1];
switch (str_translate_char (conv, (char *) str, -1, (char *) buf_ch, sizeof (buf_ch)))
{
case ESTR_SUCCESS:
res = g_utf8_get_char_validated ((char *) buf_ch, -1);
if (res < 0)
{
ch = buf_ch[0];
int res;
res = g_utf8_get_char_validated ((char *) buf_ch, -1);
ch = res >= 0 ? res : buf_ch[0];
break;
}
else
{
ch = res;
}
break;
case ESTR_PROBLEM:
case ESTR_FAILURE:
default:
ch = '.';
break;
}
str_close_conv (conv);
}
return ch;
return ch;
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -223,6 +223,8 @@ mc_fhl_get_color_filetype (mc_fhl_filter_t * mc_filter, mc_fhl_t * fhl, file_ent
if (mc_fhl_is_special_door (fe))
my_color = TRUE;
break;
default:
break;
}
return (my_color) ? mc_filter->color_pair_index : -1;
@ -276,6 +278,8 @@ mc_fhl_get_color (mc_fhl_t * fhl, file_entry_t * fe)
if (ret > 0)
return -ret;
break;
default:
break;
}
}
return NORMAL_COLOR;

View File

@ -248,9 +248,9 @@ lock_file (const vfs_path_t * fname_vpath)
break;
case 1:
case -1:
default: /* Esc Esc */
g_free (msg);
goto ret;
break; /* FIXME: unneeded? */
}
g_free (msg);
}

View File

@ -121,9 +121,10 @@ mc_search__translate_replace_glob_to_regex (const char *str)
buff = g_string_sized_new (32);
while (*str)
while (*str != '\0')
{
char c = *str++;
switch (c)
{
case '\\':
@ -146,6 +147,8 @@ mc_search__translate_replace_glob_to_regex (const char *str)
if (!escaped_mode)
g_string_append_c (buff, '\\');
break;
default:
break;
}
g_string_append_c (buff, c);
escaped_mode = FALSE;

View File

@ -330,6 +330,8 @@ mc_deserialize_config (const char *data, GError ** error)
g_free (current_value);
current_status = WAIT_GROUP;
break;
default:
break;
}
}
g_free (current_group);

View File

@ -81,6 +81,8 @@ strutils_escape (const char *src, gsize src_len, const char *escaped_chars,
case '\0':
g_string_append (ret, "\\0");
continue;
default:
break;
}
}
@ -145,6 +147,8 @@ strutils_unescape (const char *src, gsize src_len, const char *unescaped_chars,
case '0':
g_string_append_c (ret, '\0');
continue;
default:
break;
}
}

View File

@ -278,6 +278,8 @@ str_8bit_fit_to_term (const char *text, int width, align_crt_t just_mode)
case J_RIGHT:
ident = width - length;
break;
default:
break;
}
if ((int) remain <= ident)
@ -322,6 +324,8 @@ str_8bit_fit_to_term (const char *text, int width, align_crt_t just_mode)
case J_RIGHT:
ident = length - width;
break;
default:
break;
}
pos += ident;
@ -354,7 +358,6 @@ str_8bit_term_trim (const char *text, int width)
if (width >= (int) length)
{
for (pos = 0; pos < length && remain > 1; pos++, actual++, remain--)
actual[0] = char_isprint (text[pos]) ? text[pos] : '.';
}

View File

@ -230,6 +230,8 @@ str_ascii_fit_to_term (const char *text, int width, align_crt_t just_mode)
case J_RIGHT:
ident = width - length;
break;
default:
break;
}
/* add space before text */
@ -289,6 +291,8 @@ str_ascii_fit_to_term (const char *text, int width, align_crt_t just_mode)
case J_RIGHT:
ident = length - width;
break;
default:
break;
}
/* copy substring text, substring start from ident and take width

View File

@ -609,7 +609,6 @@ str_utf8_fit_to_term (const char *text, int width, align_crt_t just_mode)
if (pre_form->width <= (gsize) width)
{
tool.ident = 0;
switch (HIDE_FIT (just_mode))
{
case J_CENTER_LEFT:
@ -619,6 +618,9 @@ str_utf8_fit_to_term (const char *text, int width, align_crt_t just_mode)
case J_RIGHT:
tool.ident = width - pre_form->width;
break;
default:
tool.ident = 0;
break;
}
utf8_tool_insert_space (&tool, tool.ident);
@ -638,7 +640,6 @@ str_utf8_fit_to_term (const char *text, int width, align_crt_t just_mode)
}
else
{
tool.ident = 0;
switch (HIDE_FIT (just_mode))
{
case J_CENTER:
@ -647,6 +648,9 @@ str_utf8_fit_to_term (const char *text, int width, align_crt_t just_mode)
case J_RIGHT:
tool.ident = width - pre_form->width;
break;
default:
tool.ident = 0;
break;
}
utf8_tool_skip_chars_to (&tool, 0);

View File

@ -163,6 +163,8 @@ xstrtoumax (const char *s, char **ptr, int base, uintmax_t * val, const char *va
base = 1000;
suffixes++;
break;
default:
break;
}
}

View File

@ -144,7 +144,6 @@ tty_color_deinit_lib (void)
void
tty_color_try_alloc_pair_lib (tty_color_pair_t * mc_color_pair)
{
if (mc_color_pair->ifg <= (int) SPEC_A_REVERSE)
{
switch (mc_color_pair->ifg)
@ -169,6 +168,8 @@ tty_color_try_alloc_pair_lib (tty_color_pair_t * mc_color_pair)
COLOR_WHITE, COLOR_BLACK,
COLOR_WHITE, COLOR_BLACK, A_UNDERLINE);
break;
default:
break;
}
}
else
@ -179,7 +180,6 @@ tty_color_try_alloc_pair_lib (tty_color_pair_t * mc_color_pair)
ibg = mc_color_pair->ibg;
attr = mc_color_pair->attr;
/* In non-256 color mode, change bright colors into bold */
if (!tty_use_256colors ())
{

View File

@ -156,7 +156,6 @@ tty_color_try_alloc_pair_lib (tty_color_pair_t * mc_color_pair)
"white", "black", "white", "black", SLTT_BOLD_MASK);
break;
case SPEC_A_BOLD_REVERSE:
mc_tty_color_pair_init_special (mc_color_pair,
"white", "white",
"white", "white", SLTT_BOLD_MASK | SLTT_REV_MASK);
@ -165,6 +164,8 @@ tty_color_try_alloc_pair_lib (tty_color_pair_t * mc_color_pair)
mc_tty_color_pair_init_special (mc_color_pair,
"white", "black", "white", "black", SLTT_ULINE_MASK);
break;
default:
break;
}
}
else

View File

@ -1123,6 +1123,8 @@ correct_key_code (int code)
case KEY_KP_MULTIPLY:
c = '*';
break;
default:
break;
}
return (mod | c);

View File

@ -297,6 +297,8 @@ name_quote (const char *s, gboolean quote_percent)
if (ret->len == 0)
g_string_append_c (ret, '\\');
break;
default:
break;
}
g_string_append_c (ret, *s);
}
@ -855,6 +857,8 @@ get_compression_type (int fd, const char *name)
return COMPRESSION_BZIP;
case 'h':
return COMPRESSION_BZIP2;
default:
break;
}
}
@ -902,6 +906,8 @@ decompress_extension (int type)
return "/ulzma" VFS_PATH_URL_DELIMITER;
case COMPRESSION_XZ:
return "/uxz" VFS_PATH_URL_DELIMITER;
default:
break;
}
/* Should never reach this place */
fprintf (stderr, "Fatal: decompress_extension called with an unknown argument\n");

View File

@ -638,6 +638,8 @@ vfs_s_lseek (void *fh, off_t offset, int whence)
case SEEK_END:
offset += size;
break;
default:
break;
}
if (offset < 0)
FH->pos = 0;
@ -820,8 +822,9 @@ vfs_s_setctl (const vfs_path_t * vpath, int ctlop, void *arg)
case VFS_SETCTL_FLUSH:
((struct vfs_s_subclass *) path_element->class->data)->flush = 1;
return 1;
default:
return 0;
}
return 0;
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -309,6 +309,8 @@ vfs_path_url_split (vfs_path_element_t * path_element, const char *path)
case 'r':
path_element->port = 2;
break;
default:
break;
}
}
}

View File

@ -334,6 +334,8 @@ vfs_url_split (const char *path, int default_port, vfs_url_flags_t flags)
case 'r':
path_element->port = 2;
break;
default:
break;
}
}
}

View File

@ -241,6 +241,8 @@ do_select_widget (WDialog * h, GList * w, select_dir_t dir)
case SELECT_PREV:
h->current = dlg_widget_prev (h, h->current);
break;
default:
break;
}
}
while (h->current != w /* && (WIDGET (h->current->data)->options & W_DISABLED) == 0 */ );

View File

@ -659,6 +659,8 @@ command_completion_function (const char *_text, int state, input_complete_t flag
if (!found)
MC_PTR_FREE (cur_word);
}
default:
break;
}
if (found == NULL)
@ -1088,6 +1090,8 @@ query_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void *d
/* fallthrough */
case -2:
return MSG_HANDLED;
default:
break;
}
for (i = 0, e = listbox_get_first_link (LISTBOX (h->current->data));

View File

@ -475,6 +475,7 @@ menubar_handle_key (WMenuBar * menubar, int key)
menubar_draw (menubar);
return 1;
}
case KEY_LEFT:
case XCTRL ('b'):
menubar_left (menubar);
@ -484,6 +485,9 @@ menubar_handle_key (WMenuBar * menubar, int key)
case XCTRL ('f'):
menubar_right (menubar);
return 1;
default:
break;
}
if (!menubar->is_dropped)
@ -554,6 +558,9 @@ menubar_handle_key (WMenuBar * menubar, int key)
case XCTRL ('p'):
menubar_up (menubar);
break;
default:
break;
}
}

View File

@ -105,8 +105,9 @@ radio_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void *d
r->pos++;
return MSG_HANDLED;
}
default:
return MSG_NOT_HANDLED;
}
return MSG_NOT_HANDLED;
case MSG_CURSOR:
send_message (w->owner, w, MSG_ACTION, 0, NULL);

View File

@ -79,6 +79,7 @@ dnl MC_CHECK_ONE_CFLAG([-Wbad-function-cast])
dnl MC_CHECK_ONE_CFLAG([-Wstrict-aliasing])
MC_CHECK_ONE_CFLAG([-Wstrict-prototypes])
MC_CHECK_ONE_CFLAG([-Wswitch])
MC_CHECK_ONE_CFLAG([-Wswitch-default])
MC_CHECK_ONE_CFLAG([-Wtype-limits])
MC_CHECK_ONE_CFLAG([-Wundef])
MC_CHECK_ONE_CFLAG([-Wuninitialized])

View File

@ -315,6 +315,8 @@ background_attention (int fd, void *closure)
case 4:
result = routine.have_ctx4 (Background, data[0], data[1], data[2], data[3]);
break;
default:
break;
}
else
switch (argc)
@ -335,6 +337,8 @@ background_attention (int fd, void *closure)
result =
routine.non_have_ctx4 (ctx, Background, data[0], data[1], data[2], data[3]);
break;
default:
break;
}
/* Send the result code and the value for shared variables */

View File

@ -269,6 +269,8 @@ main (int argc, char **argv)
case CONSOLE_CONTENTS:
send_contents (buffer + 4, winsz.ws_col, winsz.ws_row);
break;
default:
break;
}
if (write (1, &console_flag, 1) != 1)

View File

@ -2003,6 +2003,8 @@ get_current_hunk (WDiff * dview, int *start_line1, int *end_line1, int *start_li
case CHG_CH:
res = DIFF_CHG;
break;
default:
break;
}
while (pos > 0 && ((DIFFLN *) & g_array_index (a0, DIFFLN, pos))->ch != EQU_CH)
pos--;
@ -2238,6 +2240,8 @@ do_merge_hunk (WDiff * dview, action_direction_t merge_direction)
case DIFF_CHG:
dview_replace_hunk (dview, merge_file, from1, to1, from2, to2, merge_direction);
break;
default:
break;
}
fflush (merge_file);
fclose (merge_file);

View File

@ -1168,6 +1168,8 @@ edit_do_undo (WEdit * edit)
case COLUMN_OFF:
edit->column_highlight = 0;
break;
default:
break;
}
if (ac >= 256 && ac < 512)
edit_insert_ahead (edit, ac - 256);
@ -1251,6 +1253,8 @@ edit_do_redo (WEdit * edit)
case COLUMN_OFF:
edit->column_highlight = 0;
break;
default:
break;
}
if (ac >= 256 && ac < 512)
edit_insert_ahead (edit, ac - 256);
@ -1912,6 +1916,7 @@ edit_write_stream (WEdit * edit, FILE * f)
return i;
break;
case LB_ASIS: /* default without changes */
default:
break;
}
}
@ -3404,6 +3409,8 @@ edit_execute_cmd (WEdit * edit, unsigned long command, int char_for_insertion)
edit->column_highlight = 0;
edit_mark_cmd (edit, TRUE);
}
default:
break;
}
switch (command)
@ -3429,6 +3436,8 @@ edit_execute_cmd (WEdit * edit, unsigned long command, int char_for_insertion)
case CK_MarkLeft:
case CK_MarkRight:
edit->force |= REDRAW_CHAR_ONLY;
default:
break;
}
/* basic cursor key commands */
@ -3961,6 +3970,8 @@ edit_execute_cmd (WEdit * edit, unsigned long command, int char_for_insertion)
case CK_DeleteToEnd:
format_paragraph (edit, FALSE);
edit->force |= REDRAW_PAGE;
default:
break;
}
}
}

View File

@ -2874,6 +2874,7 @@ edit_ok_to_exit (WEdit * edit)
return mc_global.midnight_shutdown;
break;
case 1: /* No */
default:
break;
case 2: /* Cancel quit */
case -1: /* Esc */

View File

@ -1459,6 +1459,8 @@ edit_handle_move_resize (WEdit * edit, unsigned long command)
break;
}
break;
default:
break;
}
return ret;

View File

@ -153,6 +153,8 @@ parse_define (char *buf, char **long_name, char **short_name, long *line)
*short_name = shortdef;
*line = atol (linedef);
return TRUE;
default:
break;
}
buf++;
c = *buf;
@ -250,6 +252,8 @@ etags_set_definition_hash (const char *tagfile, const char *start_path,
}
}
break;
default:
break;
}
}

View File

@ -303,6 +303,8 @@ chl_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void *dat
h->ret_value = parm;
dlg_stop (h);
}
default:
break;
}
default:
@ -615,6 +617,9 @@ advanced_chown_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm
dlg_one_down (h);
}
break;
default:
break;
}
return MSG_NOT_HANDLED;
@ -887,6 +892,7 @@ chown_advanced_cmd (void)
break;
case B_SKIP:
default:
break;
}

View File

@ -541,6 +541,9 @@ chmod_cmd (void)
apply_mask (&sf_stat);
break;
default:
break;
}
if (current_panel->marked != 0 && result != B_CANCEL)

View File

@ -436,6 +436,9 @@ chown_cmd (void)
apply_chowns (new_user, new_group);
break;
}
default:
break;
} /* switch */
if (current_panel->marked && ch_dlg->ret_value != B_CANCEL)

View File

@ -115,7 +115,6 @@ examine_cd (const char *_path)
/* Variable expansion */
for (p = path_tilde, r = q; *p != '\0' && r < q + MC_MAXPATHLEN;)
{
switch (state)
{
case copy_sym:
@ -181,6 +180,9 @@ examine_cd (const char *_path)
state = copy_sym;
break;
}
default:
break;
}
}

View File

@ -1538,6 +1538,8 @@ do { \
case HL_TYPE_DOTDOT:
/* do nothing */
break;
default:
break;
}
}

View File

@ -1022,6 +1022,9 @@ set_display_type (int num, panel_view_mode_t type)
mcview_load ((struct mcview_struct *) new_widget, 0, file_name, 0);
break;
default:
break;
}
if (type != view_listing)

View File

@ -3376,7 +3376,10 @@ panel_execute_cmd (WPanel * panel, unsigned long command)
/* reset state of marks flag */
state_mark = -1;
break;
default:
break;
}
switch (command)
{
case CK_PanelOtherCd:
@ -3525,7 +3528,10 @@ panel_execute_cmd (WPanel * panel, unsigned long command)
case CK_SortByMTime:
panel_set_sort_type_by_id (panel, "mtime");
break;
default:
break;
}
return res;
}

View File

@ -516,9 +516,7 @@ external_panelize (void)
/* display file info */
tty_setcolor (SELECTED_COLOR);
dlg_run (panelize_dlg);
switch (panelize_dlg->ret_value)
switch (dlg_run (panelize_dlg))
{
case B_CANCEL:
break;
@ -549,6 +547,9 @@ external_panelize (void)
return;
}
break;
default:
break;
}
panelize_done ();

View File

@ -192,6 +192,8 @@ decode (char *buffer)
case '\\':
*q = '\\';
break;
default:
break;
}
}
*q = *p;

View File

@ -905,7 +905,10 @@ expand_format (struct WEdit *edit_widget, char c, gboolean do_quote)
result = g_string_free (block, FALSE);
goto ret;
} /* sub case block */
default:
break;
} /* switch */
result = g_strdup ("% ");
result[1] = c;
ret:

View File

@ -218,6 +218,8 @@ learn_check_key (int c)
case 'k':
dlg_one_up (learn_dlg);
return TRUE;
default:
break;
}
/* Prevent from disappearing if a non-defined sequence is pressed

View File

@ -334,6 +334,9 @@ init_subshell_child (const char *pty_name)
case FISH:
execl (mc_global.tty.shell, "fish", (char *) NULL);
break;
default:
break;
}
/* If we get this far, everything failed miserably */
@ -769,6 +772,8 @@ init_subshell (void)
mc_global.tty.use_subshell = FALSE;
mc_global.midnight_shutdown = TRUE;
return;
default:
break;
}
/* Take the current (hopefully pristine) tty mode and make */
@ -897,6 +902,8 @@ init_subshell (void)
subshell_pipe[WRITE]);
break;
default:
break;
}
write_all (mc_global.tty.subshell_pty, precmd, strlen (precmd));

View File

@ -750,6 +750,8 @@ cpio_open_archive (struct vfs_s_super *super, const vfs_path_t * vpath,
continue;
case STATUS_TRAIL:
break;
default:
break;
}
break;
}

View File

@ -828,6 +828,8 @@ fish_dir_load (struct vfs_class *me, struct vfs_s_inode *dir, char *remote_path)
ST.st_rdev = makedev (maj, min);
#endif
}
default:
break;
}
}

View File

@ -409,6 +409,8 @@ ftpfs_get_reply (struct vfs_class *me, int sock, char *string_buf, int string_le
if (string_buf != NULL)
g_strlcpy (string_buf, answer, string_len);
return code / 100;
default:
break;
}
}
}
@ -1144,6 +1146,8 @@ ftpfs_setup_passive_epsv (struct vfs_class *me, struct vfs_s_super *super,
case AF_INET6:
((struct sockaddr_in6 *) sa)->sin6_port = port;
break;
default:
break;
}
return (connect (my_socket, (struct sockaddr *) sa, *salen) < 0) ? 0 : 1;

View File

@ -187,6 +187,8 @@ sfs_vfmake (const vfs_path_t * vpath, vfs_path_t * cache_vpath)
case '%':
COPY_CHAR;
continue;
default:
break;
}
if (ptr != NULL)
{

View File

@ -399,6 +399,8 @@ sftpfs_lseek (vfs_file_handler_t * file_handler, off_t offset, int whence, GErro
}
file_handler->pos = file_handler->ino->st.st_size - offset;
break;
default:
break;
}
file_handler_data = (sftpfs_file_handler_data_t *) file_handler->data;

View File

@ -422,6 +422,8 @@ tar_fill_stat (struct vfs_s_super *archive, struct stat *st, union record *heade
st->st_rdev =
(tar_from_oct (8, header->header.devmajor) << 8) |
tar_from_oct (8, header->header.devminor);
default:
break;
}
default:
st->st_uid = tar_from_oct (8, header->header.uid);
@ -799,6 +801,9 @@ tar_open_archive (struct vfs_s_super *archive, const vfs_path_t * vpath,
case STATUS_EOF:
return 0;
default:
break;
}
/* Record of zeroes */
@ -807,6 +812,8 @@ tar_open_archive (struct vfs_s_super *archive, const vfs_path_t * vpath,
/* exit from loop */
case STATUS_EOF: /* End of archive */
break;
default:
break;
}
break;
}

View File

@ -417,6 +417,8 @@ mcview_ccache_lookup (mcview_t * view, coord_cache_entry_t * coord, enum ccache_
case NROFF_BACKSPACE:
nroff_state = NROFF_CONTINUATION;
break;
default:
break;
}
/* Cache entries must guarantee that for each i < j,

View File

@ -176,6 +176,7 @@ mcview_get_utf (mcview_t * view, off_t byte_index, int *char_length, gboolean *
str = mcview_get_ptr_string (view, byte_index);
break;
case DS_NONE:
default:
break;
}

View File

@ -109,11 +109,12 @@ mcview_get_byte (mcview_t * view, off_t offset, int *retval)
return mcview_get_byte_string (view, offset, retval);
case DS_NONE:
return mcview_get_byte_none (view, offset, retval);
}
default:
#ifdef HAVE_ASSERT_H
assert (!"Unknown datasource type");
assert (!"Unknown datasource type");
#endif
return FALSE;
return FALSE;
}
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -81,8 +81,9 @@ run_mc_build_filename (int iteration)
return mc_build_filename ("pa", "", "th", NULL);
case 12:
return mc_build_filename ("/pa", "", "/th", NULL);
default:
return NULL;
}
return NULL;
}
/* @DataSource("test_mc_build_filename_ds") */

View File

@ -170,6 +170,8 @@ fill_stat_struct (struct stat *etalon_stat, int iterator)
etalon_stat->st_mtime = 1308838140;
etalon_stat->st_ctime = 1308838140;
break;
default:
break;
}
}