diff options
author | Jez Ng <me@jezng.com> | 2013-06-17 18:13:38 -0700 |
---|---|---|
committer | Jez Ng <me@jezng.com> | 2013-06-17 18:31:36 -0700 |
commit | 4537de04414b3356628ec79fb919d0c10d5eff17 (patch) | |
tree | 34a903e2ffc286e92aa053a8f9f40adf1828f274 /tests/sdl_image_prepare_data.c | |
parent | 83d1e40dc67587c0eee1a5103ee51cfc435aa91d (diff) |
Make browser tests nicer to run.
A bunch of misc changes, including fixing compile-time warnings, and
muting the Python server request log.
Diffstat (limited to 'tests/sdl_image_prepare_data.c')
-rw-r--r-- | tests/sdl_image_prepare_data.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/sdl_image_prepare_data.c b/tests/sdl_image_prepare_data.c index 87e33399..d45a2e60 100644 --- a/tests/sdl_image_prepare_data.c +++ b/tests/sdl_image_prepare_data.c @@ -1,4 +1,6 @@ #include <stdio.h> +#include <stdlib.h> +#include <string.h> #include <SDL/SDL.h> #include <SDL/SDL_image.h> #include <assert.h> @@ -43,7 +45,7 @@ void ready(void *arg, const char *fileName) { testImage(seenName); - free(seenName); // As the API docs say, we are responsible for freeing the 'fake' names we are given + free((void*)seenName); // As the API docs say, we are responsible for freeing the 'fake' names we are given SDL_Flip(screen); } |