summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2012-10-11 08:53:50 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2012-10-11 08:53:50 +0200
commit2f1c471fbcdbcedf69f914a5a3726107c156b17d (patch)
tree569956fd136c2a1b6a829b57b22d334edb06d6b2 /src
parent546930508edce93729d41c87901b20b2eb3631fc (diff)
downloadlibtasn1-2f1c471fbcdbcedf69f914a5a3726107c156b17d.tar.gz
libtasn1-2f1c471fbcdbcedf69f914a5a3726107c156b17d.tar.bz2
libtasn1-2f1c471fbcdbcedf69f914a5a3726107c156b17d.zip
Renamed structures.
Avoid using the reserved by POSIX _t. Suggested by Ivan Shmakov. asn1_static_node_t -> asn1_static_node asn1_node_t -> asn1_node
Diffstat (limited to 'src')
-rw-r--r--src/asn1Coding.c4
-rw-r--r--src/asn1Decoding.c10
-rw-r--r--src/asn1Parser.c2
3 files changed, 8 insertions, 8 deletions
diff --git a/src/asn1Coding.c b/src/asn1Coding.c
index b11dbcb..00057be 100644
--- a/src/asn1Coding.c
+++ b/src/asn1Coding.c
@@ -133,8 +133,8 @@ main (int argc, char *argv[])
char *inputFileAsnName = NULL;
char *inputFileAssignmentName = NULL;
int checkSyntaxOnly = 0;
- asn1_node_t definitions = NULL;
- asn1_node_t structure = NULL;
+ asn1_node definitions = NULL;
+ asn1_node structure = NULL;
char errorDescription[ASN1_MAX_ERROR_DESCRIPTION_SIZE];
int asn1_result = ASN1_SUCCESS;
FILE *outputFile;
diff --git a/src/asn1Decoding.c b/src/asn1Decoding.c
index e2e32a7..ee09e18 100644
--- a/src/asn1Decoding.c
+++ b/src/asn1Decoding.c
@@ -33,7 +33,7 @@
#include <read-file.h>
#include "benchmark.h"
-static int decode(asn1_node_t definitions, const char* typeName, void* der, int der_len, int benchmark);
+static int decode(asn1_node definitions, const char* typeName, void* der, int der_len, int benchmark);
/* This feature is available in gcc versions 2.5 and later. */
#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5)
@@ -76,7 +76,7 @@ main (int argc, char *argv[])
char *inputFileAsnName = NULL;
char *inputFileDerName = NULL;
char *typeName = NULL;
- asn1_node_t definitions = NULL;
+ asn1_node definitions = NULL;
char errorDescription[ASN1_MAX_ERROR_DESCRIPTION_SIZE];
int asn1_result = ASN1_SUCCESS;
unsigned char *der;
@@ -224,11 +224,11 @@ main (int argc, char *argv[])
exit (0);
}
-static int simple_decode(asn1_node_t definitions, const char* typeName, void* der, int der_len, int benchmark)
+static int simple_decode(asn1_node definitions, const char* typeName, void* der, int der_len, int benchmark)
{
int asn1_result;
-asn1_node_t structure = NULL;
+asn1_node structure = NULL;
char errorDescription[ASN1_MAX_ERROR_DESCRIPTION_SIZE];
asn1_result = asn1_create_element (definitions, typeName, &structure);
@@ -263,7 +263,7 @@ char errorDescription[ASN1_MAX_ERROR_DESCRIPTION_SIZE];
return ASN1_SUCCESS;
}
-static int decode(asn1_node_t definitions, const char* typeName, void* der, int der_len, int benchmark)
+static int decode(asn1_node definitions, const char* typeName, void* der, int der_len, int benchmark)
{
struct benchmark_st st;
diff --git a/src/asn1Parser.c b/src/asn1Parser.c
index 054af7c..430ac7f 100644
--- a/src/asn1Parser.c
+++ b/src/asn1Parser.c
@@ -80,7 +80,7 @@ main (int argc, char *argv[])
char *inputFileName = NULL;
char *vectorName = NULL;
int checkSyntaxOnly = 0;
- asn1_node_t pointer = NULL;
+ asn1_node pointer = NULL;
char errorDescription[ASN1_MAX_ERROR_DESCRIPTION_SIZE];
int parse_result = ASN1_SUCCESS;