diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2016-03-13 01:48:49 +0100 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2016-03-13 01:48:49 +0100 |
commit | a2b3551dfb9460470bd79f5648bf597c517c40d4 (patch) | |
tree | b82f50efbd76f581a281d61009811c1afabb0733 /src/file.c | |
parent | 3ead966f48bc47444d7ec72f46e94e73557695a5 (diff) | |
download | blogc-a2b3551dfb9460470bd79f5648bf597c517c40d4.tar.gz blogc-a2b3551dfb9460470bd79f5648bf597c517c40d4.tar.bz2 blogc-a2b3551dfb9460470bd79f5648bf597c517c40d4.zip |
*: use squareball error infrastructure
Diffstat (limited to 'src/file.c')
-rw-r--r-- | src/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -23,7 +23,7 @@ char* -blogc_file_get_contents(const char *path, size_t *len, blogc_error_t **err) +blogc_file_get_contents(const char *path, size_t *len, sb_error_t **err) { if (path == NULL || err == NULL || *err != NULL) return NULL; @@ -33,7 +33,7 @@ blogc_file_get_contents(const char *path, size_t *len, blogc_error_t **err) if (fp == NULL) { int tmp_errno = errno; - *err = blogc_error_new_printf(BLOGC_ERROR_LOADER, + *err = sb_error_new_printf(BLOGC_ERROR_LOADER, "Failed to open file (%s): %s", path, strerror(tmp_errno)); return NULL; } |