summaryrefslogtreecommitdiff
path: root/src/lib/rina_name.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/rina_name.c')
-rw-r--r--src/lib/rina_name.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/lib/rina_name.c b/src/lib/rina_name.c
index b9044277..471f6fda 100644
--- a/src/lib/rina_name.c
+++ b/src/lib/rina_name.c
@@ -24,6 +24,7 @@
#include <ouroboros/logs.h>
#include <ouroboros/common.h>
#include <ouroboros/rina_name.h>
+#include <ouroboros/utils.h>
#include <string.h>
#include <math.h>
@@ -220,18 +221,6 @@ bool name_is_equal(const rina_name_t * a,
const rina_name_t * b)
{ return name_cmp(NAME_CMP_ALL, a, b); }
-static int n_digits(unsigned i)
-{
- int n = 1;
-
- while (i > 9) {
- n++;
- i /= 10;
- }
-
- return n;
-}
-
#define DELIMITER "/"
char * name_to_string(const rina_name_t * n)