Force usage of assert() condition when NDEBUG is defined
[lttng-tools.git] / src / bin / lttng / commands / help.c
index af46296ce515e0ae070610c5184baa6e0148882f..a9a01e7f14a65db8084e5b8cdbdaa6c0ad038c8d 100644 (file)
@@ -1,18 +1,8 @@
 /*
- * Copyright (C) 2015 Philippe Proulx <pproulx@efficios.com>
+ * Copyright (C) 2015 Philippe Proulx <pproulx@efficios.com>
  *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License, version 2 only,
- * as published by the Free Software Foundation.
+ * SPDX-License-Identifier: GPL-2.0-only
  *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
 #define _LGPL_SOURCE
@@ -20,7 +10,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <assert.h>
 
 #include "../command.h"
 #include <common/utils.h>
@@ -122,7 +111,7 @@ int cmd_help(int argc, const char **argv, const struct cmd_struct commands[])
        /* Show command's help */
        cmd_argv[0] = cmd->name;
        cmd_argv[1] = "--help";
-       assert(cmd->func);
+       LTTNG_ASSERT(cmd->func);
        ret = cmd->func(2, cmd_argv);
 
 end:
This page took 0.02383 seconds and 4 git commands to generate.