projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove unused variable.
[libfirm]
/
ir
/
adt
/
bipartite.c
diff --git
a/ir/adt/bipartite.c
b/ir/adt/bipartite.c
index
cc62728
..
2acb390
100644
(file)
--- a/
ir/adt/bipartite.c
+++ b/
ir/adt/bipartite.c
@@
-23,9
+23,7
@@
* @author Sebastian Hack
* @cvs-id $Id$
*/
* @author Sebastian Hack
* @cvs-id $Id$
*/
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include "config.h"
#include <stdio.h>
#include <assert.h>
#include <stdio.h>
#include <assert.h>
@@
-41,12
+39,8
@@
struct _bipartite_t {
bipartite_t *bipartite_new(int n_left, int n_right)
{
bipartite_t *bipartite_new(int n_left, int n_right)
{
- int i, size;
- bipartite_t *gr;
-
- size = n_left > 0 ? n_left - 1 : 0;
- gr = xmalloc(sizeof(*gr) + size * sizeof(void *));
- memset(gr, 0, sizeof(*gr));
+ bipartite_t *gr = XMALLOCFZ(bipartite_t, adj, n_left);
+ int i;
gr->n_left = n_left;
gr->n_right = n_right;
gr->n_left = n_left;
gr->n_right = n_right;