From: Jonathan Rajotte Date: Tue, 28 Jun 2016 19:42:50 +0000 (-0400) Subject: Fix: use -1 for unknown values of enums X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=commitdiff_plain;h=101fa438e67ec125a707fba193cfc15d053c5d76 Fix: use -1 for unknown values of enums Signed-off-by: Jonathan Rajotte --- diff --git a/src/bin/lttng/commands/create.c b/src/bin/lttng/commands/create.c index 7452507be..f3783a534 100644 --- a/src/bin/lttng/commands/create.c +++ b/src/bin/lttng/commands/create.c @@ -58,13 +58,13 @@ enum { }; enum { - OUTPUT_UNKNOWN = 1, + OUTPUT_UNKNOWN = -1, OUTPUT_NONE, OUTPUT_LOCAL, OUTPUT_NET, }; enum { - SESSION_UNKNOWN = 1, + SESSION_UNKNOWN = -1, SESSION_NORMAL, SESSION_LIVE, SESSION_SNAPSHOT,