if (vars)
{
int i;
- *vars = xcalloc (sizeof (struct variable **), *n_vars);
+ *vars = xcalloc (*n_vars, sizeof (struct variable **));
for (i = 0; i < *n_vars; ++i)
{
mm->mean_matrix = mr->mean_vectors;
mm->var_matrix = mr->var_vectors;
- struct substring *var_names = xcalloc (n_vars, sizeof *var_names);
+ struct substring *var_names = XCALLOC (n_vars, struct substring);
for (int i = 0; i < n_vars; ++i)
{
ss_alloc_substring (var_names + i, ss_cstr (var_get_name (vars[i])));
}
struct ccase *c;
- for ( ; (c = casereader_read (group) ); case_unref (c))
+ for (; (c = casereader_read (group)); case_unref (c))
{
const union value *uv = case_data (c, mr->rowtype);
const char *row_type = CHAR_CAST (const char *, uv->s);