Change returntype of read_file

This commit is contained in:
twinaphex 2015-02-23 01:27:39 +01:00
parent 1a1d6a0889
commit 0752a114f3
2 changed files with 4 additions and 4 deletions

View File

@ -233,7 +233,7 @@ bool read_compressed_file(const char * path, void **buf,
*
* Returns: true if file read, false on error.
*/
bool read_file(const char *path, void **buf, ssize_t *length)
int read_file(const char *path, void **buf, ssize_t *length)
{
#ifdef HAVE_COMPRESSION
/* Here we check, whether the file, we are about to read is
@ -250,7 +250,7 @@ bool read_file(const char *path, void **buf, ssize_t *length)
return true;
#endif
if (read_generic_file(path, buf, length))
return true;
return 1;
*length = -1;
return false;
return 0;
}

View File

@ -49,7 +49,7 @@ bool read_compressed_file(const char * path, void **buf,
*
* Returns: true if file read, false on error.
*/
bool read_file(const char *path, void **buf, ssize_t *length);
int read_file(const char *path, void **buf, ssize_t *length);
/**
* write_file: