Fix: tests: `-Wstringop-overflow` warning
[lttng-tools.git] / tests / unit / test_kernel_data.c
index 412e4004f9d09fcea583d2a79a5dba773f974bf7..322c2eb211f12b0aec827c486451c806ab3646e8 100644 (file)
@@ -1,19 +1,8 @@
 /*
- * Copyright (c)  2011 David Goulet <david.goulet@polymtl.ca>
+ * Copyright (C) 2011 David Goulet <david.goulet@polymtl.ca>
  *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * as published by the Free Software Foundation; only version 2
- * of the License.
+ * 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.
  */
 
 #include <assert.h>
 int lttng_opt_quiet = 1;
 int lttng_opt_verbose;
 int lttng_opt_mi;
-struct notification_thread_handle *notification_thread_handle;
-
-int ust_consumerd32_fd;
-int ust_consumerd64_fd;
 
 static const char alphanum[] =
        "0123456789"
@@ -149,7 +134,7 @@ static void test_create_kernel_event(void)
 
        memset(&ev, 0, sizeof(ev));
        ok(!lttng_strncpy(ev.name, get_random_string(),
-                       LTTNG_KERNEL_SYM_NAME_LEN),
+                       RANDOM_STRING_LEN),
                "Validate string length");
        ev.type = LTTNG_EVENT_TRACEPOINT;
        ev.loglevel_type = LTTNG_EVENT_LOGLEVEL_ALL;
This page took 0.026618 seconds and 5 git commands to generate.