Make create_file function static in gen-ust-tracef.c
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 25 Nov 2019 21:00:56 +0000 (16:00 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 10 Mar 2020 01:57:16 +0000 (21:57 -0400)
Fixes:

      CC gen-ust-tracef.o
    /home/smarchi/src/lttng-tools/tests/utils/testapp/gen-ust-tracef/gen-ust-tracef.c:36:6:
    error: no previous declaration for ‘create_file’
    [-Werror=missing-declarations] void create_file(const char *path)
    ^~~~~~~~~~~

Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Change-Id: I12359b30054da609be2aca998de960719120083e
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/utils/testapp/gen-ust-tracef/gen-ust-tracef.c

index 09a2c327dc8724ebdfb7c25c0406d8671c4ccf11..8f74a90daf45728d0bd2f24cb17a8e6ddcce5224 100644 (file)
@@ -23,6 +23,7 @@
 
 const char *str = "test string";
 
+static
 void create_file(const char *path)
 {
        int ret;
This page took 0.02712 seconds and 5 git commands to generate.