ls: use fmt::print()
This commit is contained in:
parent
f5b22bf2c3
commit
119a949bb5
@ -18,7 +18,7 @@
|
|||||||
void print_supported_uri_schemes_to_fp(FILE *fp)
|
void print_supported_uri_schemes_to_fp(FILE *fp)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_UN
|
#ifdef HAVE_UN
|
||||||
fprintf(fp, " file://");
|
fmt::print(fp, " file://");
|
||||||
#endif
|
#endif
|
||||||
std::set<std::string, std::less<>> protocols;
|
std::set<std::string, std::less<>> protocols;
|
||||||
input_plugins_for_each(plugin)
|
input_plugins_for_each(plugin)
|
||||||
@ -32,9 +32,9 @@ void print_supported_uri_schemes_to_fp(FILE *fp)
|
|||||||
});
|
});
|
||||||
|
|
||||||
for (const auto& protocol : protocols) {
|
for (const auto& protocol : protocols) {
|
||||||
fprintf(fp, " %s", protocol.c_str());
|
fmt::print(fp, " {}", protocol);
|
||||||
}
|
}
|
||||||
fprintf(fp,"\n");
|
fmt::print(fp, "\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user