aboutsummaryrefslogtreecommitdiff
path: root/src/ppm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ppm.c')
-rw-r--r--src/ppm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ppm.c b/src/ppm.c
index 7952305..57a402b 100644
--- a/src/ppm.c
+++ b/src/ppm.c
@@ -29,7 +29,7 @@ void save_as_ppm(char* file_path, small_t *t, size_t width, size_t height, size_
fclose(fp);
}
-small_t *load_from_ppm(char *file_path, size_t *width, size_t *height)
+char *load_from_ppm(char *file_path, size_t *width, size_t *height)
{
FILE *fp = fopen(file_path, "rb");
if(!fp) {
@@ -55,7 +55,7 @@ small_t *load_from_ppm(char *file_path, size_t *width, size_t *height)
exit(1);
}
- small_t *t = malloc((*width) * (*height ) * 3);
+ char *t = malloc((*width) * (*height ) * 3);
fread(t, *width*3, *height, fp);
@@ -64,7 +64,7 @@ small_t *load_from_ppm(char *file_path, size_t *width, size_t *height)
return t;
}
-void free_ppm(small_t *t)
+void free_ppm(char *t)
{
free(t);
}