From bbcb153180b2c45fe74012059b428b06ad61eaae Mon Sep 17 00:00:00 2001 From: =?utf8?q?Krzysztof=20Ko=C5=9Bciuszkiewicz?= Date: Wed, 18 Jan 2012 23:54:10 +0100 Subject: [PATCH] gschem: cleanup o_cue_draw_lowlevel --- gschem/src/o_cue.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gschem/src/o_cue.c b/gschem/src/o_cue.c index ae497af84..648f044ed 100644 --- a/gschem/src/o_cue.c +++ b/gschem/src/o_cue.c @@ -131,10 +131,9 @@ void o_cue_draw_lowlevel(GSCHEM_TOPLEVEL *w_current, OBJECT *object, int whichon int type, count = 0; int done = FALSE; int size; - int otherone; - int bus_involved=FALSE; + int bus_involved = FALSE; - if (whichone < 0 || whichone > 1) return; + g_return_if_fail (whichone == 0 || whichone == 1); x = object->line->x[whichone]; y = object->line->y[whichone]; @@ -146,7 +145,7 @@ void o_cue_draw_lowlevel(GSCHEM_TOPLEVEL *w_current, OBJECT *object, int whichon bus_involved = TRUE; cl_current = object->conn_list; - while(cl_current != NULL && !done) { + while (cl_current != NULL && !done) { conn = (CONN *) cl_current->data; if (conn->x == x && conn->y == y) { -- 2.11.4.GIT