projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clean-up: apply suggested clang-tidy fixes
[lttng-tools.git]
/
src
/
common
/
context.cpp
diff --git
a/src/common/context.cpp
b/src/common/context.cpp
index b85a39abd92f6a19c53ef60e2bb3c7e2d0e77990..14763c00d3b83beb680861304a4982bfa287fb9f 100644
(file)
--- a/
src/common/context.cpp
+++ b/
src/common/context.cpp
@@
-16,7
+16,7
@@
int parse_application_context(const char *str, char **out_provider_name, char **out_ctx_name)
{
const char app_ctx_prefix[] = "$app.";
int parse_application_context(const char *str, char **out_provider_name, char **out_ctx_name)
{
const char app_ctx_prefix[] = "$app.";
- char *provider_name =
NULL, *ctx_name = NULL
;
+ char *provider_name =
nullptr, *ctx_name = nullptr
;
size_t i, len, colon_pos = 0, provider_name_len, ctx_name_len;
if (!str || !out_provider_name || !out_ctx_name) {
size_t i, len, colon_pos = 0, provider_name_len, ctx_name_len;
if (!str || !out_provider_name || !out_ctx_name) {
@@
-29,7
+29,7
@@
int parse_application_context(const char *str, char **out_provider_name, char **
}
/* String starts with $app. */
}
/* String starts with $app. */
- if (strncmp(str, app_ctx_prefix, sizeof(app_ctx_prefix) - 1)) {
+ if (strncmp(str, app_ctx_prefix, sizeof(app_ctx_prefix) - 1)
!= 0
) {
goto not_found;
}
goto not_found;
}
This page took
0.023284 seconds
and
4
git commands to generate.