X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng%2Flttng.c;h=57927d4f3d301f87ceb11a0ec85ea489b4e3f4bd;hb=ba2926efa2f16966165993d654f99574c3624ef4;hp=6e16995a9d71a88e332e8f616e8971acb7628a75;hpb=4666e71c222a7348dd8134e2533027edff16d6a0;p=lttng-tools.git diff --git a/src/bin/lttng/lttng.c b/src/bin/lttng/lttng.c index 6e16995a9..57927d4f3 100644 --- a/src/bin/lttng/lttng.c +++ b/src/bin/lttng/lttng.c @@ -351,7 +351,7 @@ static int check_sessiond(void) pathname = opt_sessiond_path; } else { /* Try LTTNG_SESSIOND_PATH env variable */ - pathname = getenv(LTTNG_SESSIOND_PATH_ENV); + pathname = getenv(DEFAULT_SESSIOND_PATH_ENV); } /* Let's rock and roll */ @@ -387,9 +387,9 @@ static int check_args_no_sessiond(int argc, char **argv) int i; for (i = 0; i < argc; i++) { - if ((strncmp(argv[i], "-h", 2) == 0) || - strncmp(argv[i], "--h", 3) == 0 || - strncmp(argv[i], "--list-options", 14)) { + if ((strncmp(argv[i], "-h", sizeof("-h")) == 0) || + strncmp(argv[i], "--h", sizeof("--h")) == 0 || + strncmp(argv[i], "--list-options", sizeof("--list-options")) == 0) { return 1; } }