diff options
| author | raysan5 <raysan5@gmail.com> | 2015-02-02 00:53:49 +0100 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2015-02-02 00:53:49 +0100 |
| commit | b9e53cd1352e6a8d2f282b29cdab2828a40dfd33 (patch) | |
| tree | 175fe78f5b3aa03783effa60113a65eef61e5773 /src/utils.c | |
| parent | dc52c8f769dafa51f1cf9e92e110a88b47a06dee (diff) | |
| download | raylib-b9e53cd1352e6a8d2f282b29cdab2828a40dfd33.tar.gz raylib-b9e53cd1352e6a8d2f282b29cdab2828a40dfd33.zip | |
Removed useless spaces
Diffstat (limited to 'src/utils.c')
| -rw-r--r-- | src/utils.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/utils.c b/src/utils.c index dd08f5f8..8e42e533 100644 --- a/src/utils.c +++ b/src/utils.c @@ -235,18 +235,18 @@ void TraceLog(int msgType, const char *text, ...) } // Initialize asset manager from android app -void InitAssetManager(AAssetManager *manager) +void InitAssetManager(AAssetManager *manager) { assetManager = manager; } // Replacement for fopen -FILE *android_fopen(const char *fileName, const char *mode) +FILE *android_fopen(const char *fileName, const char *mode) { if (mode[0] == 'w') return NULL; AAsset *asset = AAssetManager_open(assetManager, fileName, 0); - + if(!asset) return NULL; return funopen(asset, android_read, android_write, android_seek, android_close); @@ -292,24 +292,24 @@ int GetNextPOT(int num) // Module specific Functions Definition //---------------------------------------------------------------------------------- #if defined(PLATFORM_ANDROID) -static int android_read(void *cookie, char *buf, int size) +static int android_read(void *cookie, char *buf, int size) { return AAsset_read((AAsset *)cookie, buf, size); } -static int android_write(void *cookie, const char *buf, int size) +static int android_write(void *cookie, const char *buf, int size) { TraceLog(ERROR, "Can't provide write access to the APK"); return EACCES; } -static fpos_t android_seek(void *cookie, fpos_t offset, int whence) +static fpos_t android_seek(void *cookie, fpos_t offset, int whence) { return AAsset_seek((AAsset *)cookie, offset, whence); } -static int android_close(void *cookie) +static int android_close(void *cookie) { AAsset_close((AAsset *)cookie); return 0; |
