summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2010-04-13 10:35:12 +0200
committerSimon Josefsson <simon@josefsson.org>2010-04-13 10:35:12 +0200
commitf97a808246843a1be3e0c23a47c65912c7f9e6b8 (patch)
tree5bddd8f03eb4f34dfc24ef69681f0c5e2ab05a71 /src
parent5a3c3a8f2848d55b946bb70cffbc648bf38e4879 (diff)
downloadlibtasn1-f97a808246843a1be3e0c23a47c65912c7f9e6b8.tar.gz
libtasn1-f97a808246843a1be3e0c23a47c65912c7f9e6b8.tar.bz2
libtasn1-f97a808246843a1be3e0c23a47c65912c7f9e6b8.zip
Indent code.
Diffstat (limited to 'src')
-rw-r--r--src/asn1Coding.c8
-rw-r--r--src/asn1Decoding.c6
-rw-r--r--src/asn1Parser.c10
3 files changed, 9 insertions, 15 deletions
diff --git a/src/asn1Coding.c b/src/asn1Coding.c
index 28c2f7d..4d86caf 100644
--- a/src/asn1Coding.c
+++ b/src/asn1Coding.c
@@ -39,13 +39,11 @@
# define ATTR_NO_RETRUN __attribute__ ((__noreturn__))
#endif
-ATTR_NO_RETRUN
-static void
+ATTR_NO_RETRUN static void
usage (int status)
{
if (status != EXIT_SUCCESS)
- fprintf (stderr, "Try `%s --help' for more information.\n",
- program_name);
+ fprintf (stderr, "Try `%s --help' for more information.\n", program_name);
else
{
printf ("\
@@ -194,7 +192,7 @@ main (int argc, char *argv[])
}
}
- if (optind == argc || optind == argc -1)
+ if (optind == argc || optind == argc - 1)
{
free (outputFileName);
fprintf (stderr, "asn1Coding: input files missing\n");
diff --git a/src/asn1Decoding.c b/src/asn1Decoding.c
index 6670ba3..d7e550d 100644
--- a/src/asn1Decoding.c
+++ b/src/asn1Decoding.c
@@ -40,13 +40,11 @@
# define ATTR_NO_RETRUN __attribute__ ((__noreturn__))
#endif
-ATTR_NO_RETRUN
-static void
+ATTR_NO_RETRUN static void
usage (int status)
{
if (status != EXIT_SUCCESS)
- fprintf (stderr, "Try `%s --help' for more information.\n",
- program_name);
+ fprintf (stderr, "Try `%s --help' for more information.\n", program_name);
else
{
printf ("\
diff --git a/src/asn1Parser.c b/src/asn1Parser.c
index 9232dad..8d50e51 100644
--- a/src/asn1Parser.c
+++ b/src/asn1Parser.c
@@ -39,22 +39,20 @@
# define ATTR_NO_RETRUN __attribute__ ((__noreturn__))
#endif
-ATTR_NO_RETRUN
-static void
+ATTR_NO_RETRUN static void
usage (int status)
{
if (status != EXIT_SUCCESS)
- fprintf (stderr, "Try `%s --help' for more information.\n",
- program_name);
+ fprintf (stderr, "Try `%s --help' for more information.\n", program_name);
else
{
printf ("\
Usage: %s [OPTION] FILE\n", program_name);
- printf ("\
+ printf ("\
Read FILE with ASN.1 definitions and generate\n\
a C array that is used with libtasn1 functions.\n\
\n");
- printf ("\
+ printf ("\
Mandatory arguments to long options are mandatory for short options too.\n\
-c, --check checks the syntax only\n\
-o, --output=FILE output file\n\