libfreeswan: Fixed compiler warning.
authorTobias Brunner <tobias@strongswan.org>
Wed, 9 Nov 2011 18:20:10 +0000 (19:20 +0100)
committerTobias Brunner <tobias@strongswan.org>
Wed, 9 Nov 2011 18:20:10 +0000 (19:20 +0100)
src/libfreeswan/pfkey_v2_parse.c

index 7c0934c..8fec9d1 100644 (file)
@@ -40,12 +40,11 @@ char pfkey_v2_parse_c_version[] = "";
 
 #define SENDERR(_x) do { error = -(_x); goto errlab; } while (0)
 
-struct satype_tbl {
+static struct {
        uint8_t proto;
        uint8_t satype;
        char* name;
-}
-static satype_tbl[] = {
+} satype_tbl[] = {
        { SA_ESP,       SADB_SATYPE_ESP,        "ESP"  },
        { SA_AH,        SADB_SATYPE_AH,         "AH"   },
        { SA_IPIP,      SADB_X_SATYPE_IPIP,     "IPIP" },