From c77b2e5e91be73817e460b2270e7decc70850095 Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Thu, 30 Mar 2006 09:09:01 +0000 Subject: Fix warnings and C++ use, from Nikos. --- lib/libtasn1.h | 4 ++-- lib/structure.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'lib') 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 \n\n"); + fprintf(file,"extern const ASN1_ARRAY_TYPE %s[]={\n",vector_name); p=pointer; -- cgit v1.2.3