and again
[libfirm] / ir / be / bechordal_draw.c
index 7bc0ff8..85fda63 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1995-2007 University of Karlsruhe.  All right reserved.
+ * Copyright (C) 1995-2008 University of Karlsruhe.  All right reserved.
  *
  * This file is part of libFirm.
  *
@@ -163,7 +163,7 @@ const plotter_if_t ps_plotter_vtab = {
 
 plotter_t *new_plotter_ps(const char *filename)
 {
-       ps_plotter_t *ps_plotter = xmalloc(sizeof(*ps_plotter));
+       ps_plotter_t *ps_plotter = XMALLOC(ps_plotter_t);
        plotter_t *p = (plotter_t *) ps_plotter;
 
        ps_plotter->filename = filename;
@@ -383,7 +383,6 @@ static void draw_block(ir_node *bl, void *data)
        const draw_chordal_opts_t *opts    = env->opts;
        struct block_dims         *dims    = pmap_get(env->block_dims, bl);
        char                      buf[64];
-       ir_node                   *irn;
        border_t                  *b;
        int                       idx;