aboutsummaryrefslogtreecommitdiffstats
path: root/src/openac
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2007-10-12 18:39:40 +0000
committerAndreas Steffen <andreas.steffen@strongswan.org>2007-10-12 18:39:40 +0000
commit26c49478f3abd0a26d8f6c430b385140bbd53470 (patch)
tree70514a8b1aace53c2cee61e6780e59a408328644 /src/openac
parent3edea3497f20b294f291d6fd6542e93358f90006 (diff)
downloadstrongswan-26c49478f3abd0a26d8f6c430b385140bbd53470.tar.bz2
strongswan-26c49478f3abd0a26d8f6c430b385140bbd53470.tar.xz
added briefs
Diffstat (limited to 'src/openac')
-rwxr-xr-xsrc/openac/openac.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/openac/openac.c b/src/openac/openac.c
index a67c42b81..a934779f7 100755
--- a/src/openac/openac.c
+++ b/src/openac/openac.c
@@ -50,11 +50,14 @@
#define OPENAC_PATH IPSEC_CONFDIR "/openac"
#define OPENAC_SERIAL IPSEC_CONFDIR "/openac/serial"
-static void usage(const char *mess)
+/**
+ * @brief prints the usage of the program to the stderr
+ */
+static void usage(const char *message)
{
- if (mess != NULL && *mess != '\0')
+ if (message != NULL && *message != '\0')
{
- fprintf(stderr, "%s\n", mess);
+ fprintf(stderr, "%s\n", message);
}
fprintf(stderr, "Usage: openac"
" [--help]"
@@ -210,7 +213,10 @@ static void openac_dbg(int level, char *fmt, ...)
}
/**
- * openac main program
+ * @brief scepclient main program
+ *
+ * @param argc number of arguments
+ * @param argv pointer to the argument values
*/
int main(int argc, char **argv)
{
@@ -412,6 +418,7 @@ int main(int argc, char **argv)
status = 0;
goto end;
}
+ /* break from loop */
break;
}