X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Furi.cpp;h=b15fe25db9aca76a27127f753ca05df65ac463ad;hb=c9e313bc594f40a86eed237dce222c0fc99c957f;hp=b1c2c63d09bcc28475445cfd5f998076bfc0d245;hpb=a6bc4ca9d659caf016ef932fcd944029737ac57c;p=lttng-tools.git diff --git a/src/common/uri.cpp b/src/common/uri.cpp index b1c2c63d0..b15fe25db 100644 --- a/src/common/uri.cpp +++ b/src/common/uri.cpp @@ -1,22 +1,22 @@ /* * Copyright (C) 2012 David Goulet * - * SPDX-License-Identifier: GPL-2.0-only + * SPDX-License-Identifier: LGPL-2.1-only * */ #define _LGPL_SOURCE #include -#include +#include #include #include #include -#include -#include -#include +#include +#include +#include -#include "uri.h" +#include "uri.hpp" #define LOOPBACK_ADDR_IPV4 "127.0.0.1" #define LOOPBACK_ADDR_IPV6 "::1" @@ -43,7 +43,7 @@ static const struct uri_proto proto_uri[] = { { .name = "tcp4", .leading_string = "tcp4://", .code = P_TCP, .type = LTTNG_TCP, .dtype = LTTNG_DST_IPV4 }, { .name = "tcp6", .leading_string = "tcp6://", .code = P_TCP6, .type = LTTNG_TCP, .dtype = LTTNG_DST_IPV6 }, /* Invalid proto marking the end of the array. */ - { 0 } + {} }; /*