aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-registry
diff options
context:
space:
mode:
Diffstat (limited to 'src/mds-registry')
-rw-r--r--src/mds-registry/registry.c1
-rw-r--r--src/mds-registry/util.c24
-rw-r--r--src/mds-registry/util.h9
3 files changed, 1 insertions, 33 deletions
diff --git a/src/mds-registry/registry.c b/src/mds-registry/registry.c
index b678a4f..c8610ca 100644
--- a/src/mds-registry/registry.c
+++ b/src/mds-registry/registry.c
@@ -23,6 +23,7 @@
#include "../mds-base.h"
+#include <libmdsserver/util.h>
#include <libmdsserver/macros.h>
#include <libmdsserver/hash-help.h>
#include <libmdsserver/client-list.h>
diff --git a/src/mds-registry/util.c b/src/mds-registry/util.c
index 733aa07..1963eeb 100644
--- a/src/mds-registry/util.c
+++ b/src/mds-registry/util.c
@@ -33,30 +33,6 @@
/**
- * Convert a client ID string into a client ID integer
- *
- * @param str The client ID string
- * @return The client ID integer
- */
-uint64_t parse_client_id(const char* str)
-{
- char client_words[22];
- char* client_high;
- char* client_low;
- uint64_t client;
-
- strcpy(client_high = client_words, str);
- client_low = rawmemchr(client_words, ':');
- *client_low++ = '\0';
- client = (uint64_t)atoll(client_high);
- client <<= 32;
- client |= (uint64_t)atoll(client_low);
-
- return client;
-}
-
-
-/**
* Free a key from a table
*
* @param obj The key
diff --git a/src/mds-registry/util.h b/src/mds-registry/util.h
index 0cc04e6..ee06d2c 100644
--- a/src/mds-registry/util.h
+++ b/src/mds-registry/util.h
@@ -20,18 +20,9 @@
#include <stddef.h>
-#include <stdint.h>
/**
- * Convert a client ID string into a client ID integer
- *
- * @param str The client ID string
- * @return The client ID integer
- */
-uint64_t parse_client_id(const char* str);
-
-/**
* Free a key from a table
*
* @param obj The key