[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pspp-cvs] Changes to pspp/src/factor_stats.c
From: |
Ben Pfaff |
Subject: |
[Pspp-cvs] Changes to pspp/src/factor_stats.c |
Date: |
Wed, 26 Oct 2005 01:06:58 -0400 |
Index: pspp/src/factor_stats.c
diff -u pspp/src/factor_stats.c:1.15 pspp/src/factor_stats.c:1.16
--- pspp/src/factor_stats.c:1.15 Sun Aug 7 04:39:28 2005
+++ pspp/src/factor_stats.c Wed Oct 26 05:06:14 2005
@@ -93,7 +93,7 @@
assert( (*wv)->v.f == val->f );
(*wv)->w += weight;
- cn = xmalloc( sizeof (struct case_node) ) ;
+ cn = xmalloc ( sizeof *cn);
cn->next = (*wv)->case_nos ;
cn->num = case_no;
@@ -107,7 +107,7 @@
(*wv)->v = *val;
(*wv)->w = weight;
- cn = xmalloc( sizeof (struct case_node) ) ;
+ cn = xmalloc (sizeof *cn);
cn->next=0;
cn->num = case_no;
(*wv)->case_nos = cn;
@@ -215,7 +215,7 @@
weighted_value_create(void)
{
struct weighted_value *wv;
- wv = xmalloc (sizeof (struct weighted_value ));
+ wv = xmalloc (sizeof *wv);
wv->cc = 0;
wv->case_nos = 0;
@@ -256,11 +256,11 @@
{
struct factor_statistics *f;
- f = xmalloc( sizeof ( struct factor_statistics ));
+ f = xmalloc (sizeof *f);
f->id[0] = *id0;
f->id[1] = *id1;
- f->m = xmalloc( sizeof ( struct metrics ) * n ) ;
+ f->m = xnmalloc (n, sizeof *f->m);
memset (f->m, 0, sizeof(struct metrics) * n);
f->n_var = n;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pspp-cvs] Changes to pspp/src/factor_stats.c,
Ben Pfaff <=