diff --git a/src/register/pricecell.c b/src/register/pricecell.c index 8b961dfff8..f46d53148d 100644 --- a/src/register/pricecell.c +++ b/src/register/pricecell.c @@ -159,7 +159,7 @@ PriceSetValue (BasicCell *_cell, const char *str) char buff[40]; PriceCell *cell = (PriceCell *) _cell; - SET (((BasicCell *)_cell), str); + SET (_cell, str); cell->amount = xaccParseUSAmount (str); diff --git a/src/register/quickfillcell.c b/src/register/quickfillcell.c index 357c937520..52d90f4d12 100644 --- a/src/register/quickfillcell.c +++ b/src/register/quickfillcell.c @@ -39,7 +39,7 @@ /* ================================================ */ static void -quick_set (struct _BasicCell *_cell, +quick_set (BasicCell *_cell, const char *val) { QuickFillCell *cell = (QuickFillCell *) _cell; @@ -50,7 +50,7 @@ quick_set (struct _BasicCell *_cell, /* when entering new cell, reset pointer to root */ static const char * -quick_enter (struct _BasicCell *_cell, +quick_enter (BasicCell *_cell, const char *val) { QuickFillCell *cell = (QuickFillCell *) _cell; @@ -64,7 +64,7 @@ quick_enter (struct _BasicCell *_cell, * all modifications */ static const char * -quick_modify (struct _BasicCell *_cell, +quick_modify (BasicCell *_cell, const char *oldval, const char *change, const char *newval) @@ -111,7 +111,7 @@ quick_modify (struct _BasicCell *_cell, /* when leaving cell, make sure that text was put into the qf */ static const char * -quick_leave (struct _BasicCell *_cell, +quick_leave (BasicCell *_cell, const char *val) { QuickFillCell *cell = (QuickFillCell *) _cell; diff --git a/src/register/recncell.c b/src/register/recncell.c index 6c20043c4a..0eb3a341e7 100644 --- a/src/register/recncell.c +++ b/src/register/recncell.c @@ -39,7 +39,7 @@ /* ================================================ */ static const char * -ToggleRecn (struct _BasicCell *_cell, const char *cur_val) +ToggleRecn (BasicCell *_cell, const char *cur_val) { BasicCell *cell = (BasicCell *) _cell; char buff[2];