aboutsummaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2016-09-09 01:15:40 +0200
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2016-09-09 01:15:40 +0200
commit634a5029931d3a68a44cf6de9c87fd8d547fe7a7 (patch)
tree445fcc72e4e80d46cf8435fd49792f0f1f1bbdf1 /src/common
parente1db398049adf8ea37cebfc8f816be12f9ba131c (diff)
downloadblogc-634a5029931d3a68a44cf6de9c87fd8d547fe7a7.tar.gz
blogc-634a5029931d3a68a44cf6de9c87fd8d547fe7a7.tar.bz2
blogc-634a5029931d3a68a44cf6de9c87fd8d547fe7a7.zip
common: fix function prototypes
Diffstat (limited to 'src/common')
-rw-r--r--src/common/error.c6
-rw-r--r--src/common/error.h8
2 files changed, 7 insertions, 7 deletions
diff --git a/src/common/error.c b/src/common/error.c
index 78cdc86..8f6735b 100644
--- a/src/common/error.c
+++ b/src/common/error.c
@@ -14,7 +14,7 @@
bc_error_t*
-bc_error_new(int type, const char *msg)
+bc_error_new(bc_error_type_t type, const char *msg)
{
bc_error_t *err = bc_malloc(sizeof(bc_error_t));
err->type = type;
@@ -24,7 +24,7 @@ bc_error_new(int type, const char *msg)
bc_error_t*
-bc_error_new_printf(int type, const char *format, ...)
+bc_error_new_printf(bc_error_type_t type, const char *format, ...)
{
va_list ap;
va_start(ap, format);
@@ -37,7 +37,7 @@ bc_error_new_printf(int type, const char *format, ...)
bc_error_t*
-bc_error_parser(int type, const char *src, size_t src_len,
+bc_error_parser(bc_error_type_t type, const char *src, size_t src_len,
size_t current, const char *format, ...)
{
va_list ap;
diff --git a/src/common/error.h b/src/common/error.h
index f2845df..200f9a7 100644
--- a/src/common/error.h
+++ b/src/common/error.h
@@ -27,10 +27,10 @@ typedef struct {
bc_error_type_t type;
} bc_error_t;
-bc_error_t* bc_error_new(int type, const char *msg);
-bc_error_t* bc_error_new_printf(int type, const char *format, ...);
-bc_error_t* bc_error_parser(int type, const char *src, size_t src_len,
- size_t current, const char *format, ...);
+bc_error_t* bc_error_new(bc_error_type_t type, const char *msg);
+bc_error_t* bc_error_new_printf(bc_error_type_t type, const char *format, ...);
+bc_error_t* bc_error_parser(bc_error_type_t type, const char *src,
+ size_t src_len, size_t current, const char *format, ...);
void bc_error_print(bc_error_t *err);
void bc_error_free(bc_error_t *err);