]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
copyright: Make strings static const
authorTobias Brunner <tobias@strongswan.org>
Tue, 28 Jan 2020 10:17:22 +0000 (11:17 +0100)
committerTobias Brunner <tobias@strongswan.org>
Tue, 28 Jan 2020 14:29:40 +0000 (15:29 +0100)
They are not used anywhere else.

src/_copyright/_copyright.c

index 038e60e8715cb5e3987a66b2be90f85034a7b625..3862fba340af9a6b15b03dfe21eeba5accba6688 100644 (file)
@@ -58,14 +58,14 @@ static const char *copyright[] = {
        NULL,
 };
 
-char usage[] = "Usage: ipsec _copyright";
-struct option opts[] = {
+static const char usage[] = "Usage: ipsec _copyright";
+static const struct option opts[] = {
   {"help",     0,      NULL,   'h',},
   {"version",  0,      NULL,   'v',},
   {0,          0,      NULL,   0, },
 };
 
-char me[] = "ipsec _copyright";        /* for messages */
+static const char me[] = "ipsec _copyright";   /* for messages */
 
 int
 main(int argc, char *argv[])