aboutsummaryrefslogtreecommitdiffstats
path: root/src/file.c
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2016-04-27 01:31:02 +0200
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2016-04-27 01:31:02 +0200
commit6153580a13e7e7c48e38fa446572c8adcae08084 (patch)
tree9be08616aed124c67159bf71fccd3a286bc0fe81 /src/file.c
parentc5e4f4c2d29831151bdce1802787b9cf012c3e5e (diff)
downloadblogc-6153580a13e7e7c48e38fa446572c8adcae08084.tar.gz
blogc-6153580a13e7e7c48e38fa446572c8adcae08084.tar.bz2
blogc-6153580a13e7e7c48e38fa446572c8adcae08084.zip
Revert "*: use squareball error infrastructure"
This reverts commit a2b3551dfb9460470bd79f5648bf597c517c40d4.
Diffstat (limited to 'src/file.c')
-rw-r--r--src/file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/file.c b/src/file.c
index 972f433..dec7c1b 100644
--- a/src/file.c
+++ b/src/file.c
@@ -23,7 +23,7 @@
char*
-blogc_file_get_contents(const char *path, size_t *len, sb_error_t **err)
+blogc_file_get_contents(const char *path, size_t *len, blogc_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, sb_error_t **err)
if (fp == NULL) {
int tmp_errno = errno;
- *err = sb_error_new_printf(BLOGC_ERROR_LOADER,
+ *err = blogc_error_new_printf(BLOGC_ERROR_LOADER,
"Failed to open file (%s): %s", path, strerror(tmp_errno));
return NULL;
}