consistent display of strongSwan version

This commit is contained in:
Andreas Steffen
2009-06-13 16:03:08 +02:00
parent 2b92fc9880
commit ebde1a7ddd
13 changed files with 17 additions and 104 deletions
+2 -3
View File
@@ -230,8 +230,7 @@ static void help(void)
"shutdown: whack"
" --shutdown"
"\n\n"
"strongSwan %s\n"
, ipsec_version_code());
"strongSwan "VERSION"\n");
}
static const char *label = NULL; /* --label operand, saved for diagnostics */
@@ -1004,7 +1003,7 @@ int main(int argc, char **argv)
{
const char **sp = ipsec_copyright_notice();
printf("%s\n", ipsec_version_string());
printf("strongSwan "VERSION"\n");
for (; *sp != NULL; sp++)
puts(*sp);
}