]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
stroke: Drop unneeded [MY|OTHER]_NETBITS
authorReto Buerki <reet@codelabs.ch>
Tue, 18 Dec 2012 15:11:19 +0000 (16:11 +0100)
committerTobias Brunner <tobias@strongswan.org>
Wed, 19 Dec 2012 10:24:02 +0000 (11:24 +0100)
src/stroke/stroke.c

index e37a4150f9f40425f253235e0a8c78fff7d43f27..e289296c140fd52bad512e516777db4a2aff6df9 100644 (file)
@@ -390,7 +390,7 @@ static void exit_usage(char *error)
        printf("Usage:\n");
        printf("  Add a connection:\n");
        printf("    stroke add NAME MY_ID OTHER_ID MY_ADDR OTHER_ADDR\\\n");
-       printf("           MY_NET OTHER_NET MY_NETBITS OTHER_NETBITS\n");
+       printf("           MY_NET OTHER_NET\n");
        printf("    where: ID is any IKEv2 ID \n");
        printf("           ADDR is a IPv4 address\n");
        printf("           NET is a IPv4 subnet in CIDR notation\n");
@@ -471,7 +471,7 @@ int main(int argc, char *argv[])
        switch (token->kw)
        {
                case STROKE_ADD:
-                       if (argc < 11)
+                       if (argc < 9)
                        {
                                exit_usage("\"add\" needs more parameters...");
                        }