aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/utils.c
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2018-03-20 19:19:56 +0100
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2018-03-20 19:19:56 +0100
commitc278e2da0cf9aee161e23771125629bdfe8d5d89 (patch)
treed133edccf32c7a260c534e22325ce671b5023421 /src/common/utils.c
parent93fc79a5b2826bcddd617e5180d5513dc3cdc67c (diff)
downloadblogc-c278e2da0cf9aee161e23771125629bdfe8d5d89.tar.gz
blogc-c278e2da0cf9aee161e23771125629bdfe8d5d89.tar.bz2
blogc-c278e2da0cf9aee161e23771125629bdfe8d5d89.zip
blogc: common: replace unsigned int with size_t
Diffstat (limited to 'src/common/utils.c')
-rw-r--r--src/common/utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/utils.c b/src/common/utils.c
index 97fa671..563d8ab 100644
--- a/src/common/utils.c
+++ b/src/common/utils.c
@@ -244,12 +244,12 @@ bc_str_strip(char *str)
char**
-bc_str_split(const char *str, char c, unsigned int max_pieces)
+bc_str_split(const char *str, char c, size_t max_pieces)
{
if (str == NULL)
return NULL;
char **rv = bc_malloc(sizeof(char*));
- unsigned int i, start = 0, count = 0;
+ size_t i, start = 0, count = 0;
for (i = 0; i < strlen(str) + 1; i++) {
if (str[0] == '\0')
break;