You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by bn...@apache.org on 2024/01/30 16:25:59 UTC
(trafficserver-libswoc) 01/01: Minor fixes, pkgconfig and example code.
This is an automated email from the ASF dual-hosted git repository.
bneradt pushed a commit to branch dev-1-2-3
in repository https://gitbox.apache.org/repos/asf/trafficserver-libswoc.git
commit 342675bcb1e52f9e4dfc57f165f51148a977a79f
Author: Alan M. Carroll <am...@apache.org>
AuthorDate: Tue May 5 16:36:39 2020 -0500
Minor fixes, pkgconfig and example code.
---
code/include/swoc/bwf_ex.h | 2 +-
code/libswoc.static.pc.in | 2 +-
example/ex_netdb.cc | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/code/include/swoc/bwf_ex.h b/code/include/swoc/bwf_ex.h
index d3ed09f..b84426d 100644
--- a/code/include/swoc/bwf_ex.h
+++ b/code/include/swoc/bwf_ex.h
@@ -72,7 +72,7 @@ FirstOfConverter(T&& t) {
} // namespace detail
/// Print the first of a list of strings that is not an empty string.
-/// All arguments must be convertible to @c std::string.
+/// All arguments must be convertible to @c std::string_view.
template<typename... Args>
std::string_view
FirstOf(Args&& ... args) {
diff --git a/code/libswoc.static.pc.in b/code/libswoc.static.pc.in
index 103f9a4..4439dbb 100644
--- a/code/libswoc.static.pc.in
+++ b/code/libswoc.static.pc.in
@@ -7,5 +7,5 @@ Name: LibSWOC++
Description: A collection of solid C++ utilities and classes.
Version: pkg_version
Requires:
-Libs: -l${libdir}swoc.pkg_version.a
+Libs: -l${libdir}/libswoc.pkg_version.a
Cflags: -I${includedir}
diff --git a/example/ex_netdb.cc b/example/ex_netdb.cc
index 7e8c323..ffb563f 100644
--- a/example/ex_netdb.cc
+++ b/example/ex_netdb.cc
@@ -103,7 +103,7 @@ swoc::Lexicon<PodType> PodTypeNames {{
namespace swoc {
BufferWriter& bwformat(BufferWriter& w, bwf::Spec const& spec, PodType pt) {
- return bwformat(w, spec, (PodTypeNames[pt]);
+ return bwformat(w, spec, (PodTypeNames[pt]));
}
BufferWriter& bwformat(BufferWriter& w, bwf::Spec const& spec, FlagSet const& flags) {