diff options
author | Dimitri Staessens <[email protected]> | 2016-03-15 15:48:52 +0100 |
---|---|---|
committer | Dimitri Staessens <[email protected]> | 2016-03-15 15:48:52 +0100 |
commit | 04bf4380b30b58252d1d2aab75a9dcc5c084c831 (patch) | |
tree | a33ce52d5b71f49c75bc7de3f9549d6257b259e1 /src/lib/rina_name.c | |
parent | ceaea65296a9cb6e2235b0dd429ab3d590b634d3 (diff) | |
parent | 7ca8145790db15d7da3c2f1b260ad3421993b67c (diff) | |
download | ouroboros-04bf4380b30b58252d1d2aab75a9dcc5c084c831.tar.gz ouroboros-04bf4380b30b58252d1d2aab75a9dcc5c084c831.zip |
Merge branch 'be' of bitbucket.org:ouroboros-rina/ouroboros into b-du_buff
Diffstat (limited to 'src/lib/rina_name.c')
-rw-r--r-- | src/lib/rina_name.c | 13 |
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) |