Clean-up: remove instances of loop initial declarations
[lttng-tools.git] / include / lttng / lttng-error.h
index bddd39d7835db0d7534ab5a4ab0ca932fa2449ac..4757d3d60fcb046b6afd85b192d654ff8d1f2acf 100644 (file)
@@ -6,20 +6,10 @@
  * The following values are all the possible errors the lttng command line
  * client can quit with.
  *
- * Copyright (C) 2012 David Goulet <dgoulet@efficios.com>
+ * Copyright (C) 2012 David Goulet <dgoulet@efficios.com>
  *
- * This library is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License, version 2.1 only,
- * as published by the Free Software Foundation.
+ * SPDX-License-Identifier: LGPL-2.1-only
  *
- * This library 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 Lesser General Public License
- * for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this library; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
 #ifndef LTTNG_ERROR_H
@@ -183,11 +173,12 @@ enum lttng_error_code {
        LTTNG_ERR_USER_NOT_FOUND         = 160, /* User not found. */
        LTTNG_ERR_GROUP_NOT_FOUND        = 161, /* Group not found. */
 
+       /* MUST be last element of the manually-assigned section of the enum */
+       LTTNG_ERR_NR,
+
+       /* Backward-compatibility assignments */
        LTTNG_ERR_PID_TRACKED            = LTTNG_ERR_ID_TRACKED, /* Backward compat alias to LTTNG_ERR_ID_TRACKED */
        LTTNG_ERR_PID_NOT_TRACKED        = LTTNG_ERR_ID_NOT_TRACKED, /* Backward compat alias to LTTNG_ERR_ID_NOT_TRACKED */
-
-       /* MUST be last element */
-       LTTNG_ERR_NR,                           /* Last element */
 };
 
 /*
This page took 0.025466 seconds and 5 git commands to generate.