diff options
author | Sander Vrijders <[email protected]> | 2016-03-15 15:43:17 +0100 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2016-03-15 15:43:17 +0100 |
commit | bd7a8ea8a1adbd6763aea857e72623929b7ad7a4 (patch) | |
tree | 168c30a3090d14c654967d0942b4718cd4a979a9 /src/lib/rina_name.c | |
parent | 74dc5818ac8586fcc36915874592c9f4fbb4e6f6 (diff) | |
download | ouroboros-bd7a8ea8a1adbd6763aea857e72623929b7ad7a4.tar.gz ouroboros-bd7a8ea8a1adbd6763aea857e72623929b7ad7a4.zip |
irmd, lib: Create and destroy IPC Processes
This adds the functionality to create and destroy IPCPs. Upon creation
a new process is forked and execve'd. Upon destruction the IPCP is
destroyed by killing it with SIGTERM.
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) |