diff options
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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; |