From 26c49478f3abd0a26d8f6c430b385140bbd53470 Mon Sep 17 00:00:00 2001 From: Andreas Steffen Date: Fri, 12 Oct 2007 18:39:40 +0000 Subject: added briefs --- src/openac/openac.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'src/openac') 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; } -- cgit v1.2.3