aboutsummaryrefslogtreecommitdiffstats
path: root/demos/modules/gadc
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2014-02-02 12:59:36 +0100
committerJoel Bodenmann <joel@unormal.org>2014-02-02 12:59:36 +0100
commit6515373b2a63a24b77ff20a26e9b18468f29a6f9 (patch)
tree3defb6803ece269740bef971244ebee5a44173ed /demos/modules/gadc
parentbf8ceb278fc285eff477294e1ae2cf539ada747b (diff)
downloaduGFX-6515373b2a63a24b77ff20a26e9b18468f29a6f9.tar.gz
uGFX-6515373b2a63a24b77ff20a26e9b18468f29a6f9.tar.bz2
uGFX-6515373b2a63a24b77ff20a26e9b18468f29a6f9.zip
removing casts of gfxAlloc() return value as that is the whole idea behind having a void pointer
Diffstat (limited to 'demos/modules/gadc')
-rw-r--r--demos/modules/gadc/gwinosc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/modules/gadc/gwinosc.c b/demos/modules/gadc/gwinosc.c
index b7201088..4cc1fc3a 100644
--- a/demos/modules/gadc/gwinosc.c
+++ b/demos/modules/gadc/gwinosc.c
@@ -70,9 +70,9 @@ GHandle gwinGScopeCreate(GDisplay *g, GScopeObject *gs, GWindowInit *pInit, uint
return 0;
gfxSemInit(&gs->bsem, 0, 1);
gs->nextx = 0;
- if (!(gs->lastscopetrace = (coord_t *)gfxAlloc(gs->g.width * sizeof(coord_t))))
+ if (!(gs->lastscopetrace = gfxAlloc(gs->g.width * sizeof(coord_t))))
return 0;
- if (!(gs->audiobuf = (adcsample_t *)gfxAlloc(AUDIOBUFSZ * sizeof(adcsample_t))))
+ if (!(gs->audiobuf = gfxAlloc(AUDIOBUFSZ * sizeof(adcsample_t))))
return 0;
#if TRIGGER_METHOD == TRIGGER_POSITIVERAMP
gs->lasty = gs->g.height/2;