aboutsummaryrefslogtreecommitdiff
path: root/sb.c
diff options
context:
space:
mode:
Diffstat (limited to 'sb.c')
-rw-r--r--sb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sb.c b/sb.c
index e1cbd63..a36f82a 100644
--- a/sb.c
+++ b/sb.c
@@ -15,7 +15,7 @@ struct sbnode {
sbnode* next;
};
-sbnode* newsbnode(sbnode* prev, size_t sz){
+static sbnode* newsbnode(sbnode* prev, size_t sz){
sbnode* node = malloc(sizeof(sbnode)); // Allocate
node->str = malloc(sizeof(char)*(sz+1)); node->str[sz] = 0;
node->next = NULL; // Init
@@ -31,7 +31,7 @@ sb* newsb(size_t sz){
return out;
}
-void extendsb(sb* buf){
+static void extendsb(sb* buf){
buf->sz *= 2;
buf->loc = 0;
buf->tail = newsbnode(buf->tail, buf->sz);