summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2006-03-30 09:09:01 +0000
committerSimon Josefsson <simon@josefsson.org>2006-03-30 09:09:01 +0000
commitc77b2e5e91be73817e460b2270e7decc70850095 (patch)
tree65b7e1b8bc925eb177372160c3042d32e1236165 /lib
parentedf4d8a8fbe4ce9d0a219907854d6079a7163010 (diff)
downloadlibtasn1-c77b2e5e91be73817e460b2270e7decc70850095.tar.gz
libtasn1-c77b2e5e91be73817e460b2270e7decc70850095.tar.bz2
libtasn1-c77b2e5e91be73817e460b2270e7decc70850095.zip
Fix warnings and C++ use, from Nikos.
Diffstat (limited to 'lib')
-rw-r--r--lib/libtasn1.h4
-rw-r--r--lib/structure.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/libtasn1.h b/lib/libtasn1.h
index 1c2509a..721c253 100644
--- a/lib/libtasn1.h
+++ b/lib/libtasn1.h
@@ -124,9 +124,9 @@ extern "C"
struct static_struct_asn
{
- char *name; /* Node name */
+ const char *name; /* Node name */
unsigned int type; /* Node type */
- unsigned char *value; /* Node value */
+ const void *value; /* Node value */
};
typedef struct static_struct_asn ASN1_ARRAY_TYPE;
diff --git a/lib/structure.c b/lib/structure.c
index 8595585..8b1aec9 100644
--- a/lib/structure.c
+++ b/lib/structure.c
@@ -94,8 +94,8 @@ _asn1_create_static_structure(ASN1_TYPE pointer,char* output_file_name,char *vec
if(file==NULL) return ASN1_FILE_NOT_FOUND;
- fprintf(file,"\n#include \"libtasn1.h\"\n\n");
- fprintf(file,"const ASN1_ARRAY_TYPE %s[]={\n",vector_name);
+ fprintf(file,"\n#include <libtasn1.h>\n\n");
+ fprintf(file,"extern const ASN1_ARRAY_TYPE %s[]={\n",vector_name);
p=pointer;