Cleanup: apply `include-what-you-use` guideline for `uint*_t`
[lttng-ust.git] / liblttng-ust / lttng-context-provider.c
index 8e065abe3eb0c650b44fa6c507f26831591c119a..50f73c6253cf340d90485540ce154dfdafd24d72 100644 (file)
  */
 
 #define _LGPL_SOURCE
+#include <stddef.h>
+#include <stdint.h>
 #include <sys/types.h>
 #include <unistd.h>
+
 #include <lttng/ust-context-provider.h>
 #include "lttng-tracer-core.h"
 #include "jhash.h"
@@ -71,9 +74,9 @@ int lttng_ust_context_provider_register(struct lttng_ust_context_provider *provi
        lttng_ust_fixup_tls();
 
        /* Provider name starts with "$app.". */
-       if (strncmp("$app.", provider->name, strlen("$app.") != 0))
+       if (strncmp("$app.", provider->name, strlen("$app.")) != 0)
                return -EINVAL;
-       /* Provider name cannot contain a column character. */
+       /* Provider name cannot contain a colon character. */
        if (strchr(provider->name, ':'))
                return -EINVAL;
        if (ust_lock()) {
This page took 0.025891 seconds and 4 git commands to generate.