X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcommon%2Furi.c;h=c735e856f3b12787106b86b0c4b184c5f075057c;hb=14c4262b940630bbb75f68b8c2eaef2b134a62d9;hp=7fe4dd3b30af4796a855fb28cb83f5f4fca827ce;hpb=70bc2efdc665e3a2e4c6eb000c5879960fb2ee8c;p=lttng-tools.git diff --git a/src/common/uri.c b/src/common/uri.c index 7fe4dd3b3..c735e856f 100644 --- a/src/common/uri.c +++ b/src/common/uri.c @@ -61,7 +61,7 @@ static const struct uri_proto proto_uri[] = { * Return pointer to the character in s matching one of the characters in * accept. If nothing is found, return pointer to the end of string (eos). */ -static const inline char *strpbrk_or_eos(const char *s, const char *accept) +static inline const char *strpbrk_or_eos(const char *s, const char *accept) { char *p = strpbrk(s, accept); if (p == NULL) { @@ -266,22 +266,6 @@ void uri_free(struct lttng_uri *uri) free(uri); } -/* - * Return an allocated URI. - */ -LTTNG_HIDDEN -struct lttng_uri *uri_create(void) -{ - struct lttng_uri *uri; - - uri = zmalloc(sizeof(struct lttng_uri)); - if (uri == NULL) { - PERROR("zmalloc uri"); - } - - return uri; -} - /* * Parses a string URI to a lttng_uri. This function can potentially return * more than one URI in uris so the size of the array is returned and uris is