summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 1e46fbf..b0576a5 100644
--- a/src/main.c
+++ b/src/main.c
@@ -7,15 +7,17 @@
int
main(void)
{
- Aplwc *aplwc;
+ struct aplwc *aplwc;
+ uint8_t *data;
+ int ret;
- uint8_t *data = malloc(MEMORY);
+ data = malloc(MEMORY);
if(data == NULL){
fprintf(stderr, "Couldn't allocate memory\n");
return 1;
}
- int ret = aplwc_new(&aplwc, data, MEMORY);
+ ret = aplwc_new(&aplwc, data, MEMORY);
if(ret){
fprintf(stderr, "Couldn't create new aplwc instance: %s\n", aplwc_errstr(aplwc));
return 1;