projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added preamble
[pspp-builds.git]
/
src
/
t-test.q
diff --git
a/src/t-test.q
b/src/t-test.q
index 5334a27a9068dc254b3f0bf0d9a25d8eba52c40f..5fdb802d633be7246b49c2f639c130e63905cf41 100644
(file)
--- a/
src/t-test.q
+++ b/
src/t-test.q
@@
-310,8
+310,8
@@
cmd_t_test(void)
assert(cmd.n_variables == 0);
cmd.n_variables = hsh_count(hash);
assert(cmd.n_variables == 0);
cmd.n_variables = hsh_count(hash);
- cmd.v_variables = x
realloc(cmd.v
_variables,
-
sizeof(struct variable) * cmd.n
_variables);
+ cmd.v_variables = x
nrealloc (cmd.v_variables, cmd.n
_variables,
+
sizeof *cmd.v
_variables);
/* Iterate through the hash */
for (i=0,v = (struct variable *) hsh_first(hash,&hi);
v != 0;
/* Iterate through the hash */
for (i=0,v = (struct variable *) hsh_first(hash,&hi);
v != 0;
@@
-509,7
+509,7
@@
tts_custom_pairs (struct cmd_t_test *cmd UNUSED)
/* Allocate storage for the pairs */
/* Allocate storage for the pairs */
- pairs = x
realloc(pairs, sizeof(struct pair) * (n_pairs + n_pairs_local)
);
+ pairs = x
nrealloc (pairs, n_pairs + n_pairs_local, sizeof *pairs
);
/* Populate the pairs with the appropriate variables */
if ( paired )
/* Populate the pairs with the appropriate variables */
if ( paired )
@@
-1711,8
+1711,7
@@
group_precalc (struct cmd_t_test *cmd )
for (j=0 ; j < 2 ; ++j)
{
for (j=0 ; j < 2 ; ++j)
{
- struct group_statistics *gs = (struct group_statistics *)
- xmalloc (sizeof(struct group_statistics));
+ struct group_statistics *gs = xmalloc (sizeof *gs);
gs->sum = 0;
gs->n = 0;
gs->sum = 0;
gs->n = 0;