summaryrefslogtreecommitdiff
path: root/src/core/line-split.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/line-split.c')
-rw-r--r--src/core/line-split.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/core/line-split.c b/src/core/line-split.c
index 2810a0d5..b7daf275 100644
--- a/src/core/line-split.c
+++ b/src/core/line-split.c
@@ -19,6 +19,7 @@
*/
#include "module.h"
+#include "misc.h"
/* Maximum line length - split to two lines if it's longer than this.
@@ -38,14 +39,6 @@ struct _LINEBUF_REC {
char *str;
};
-static inline int nearest_power(int num)
-{
- int n = 1;
-
- while (n < num) n <<= 1;
- return n;
-}
-
static void linebuf_append(LINEBUF_REC *rec, const char *data, int len)
{
if (rec->len+len > rec->alloc) {