aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2006-09-12 04:21:30 +0000
committerLev Walkin <vlm@lionet.info>2006-09-12 04:21:30 +0000
commit9b5df8488743d2f0e98a3746effc87b71f28cc9a (patch)
tree2ab9d7c2de2a001ef3208caca1715ab0f138b341
parente9f99caf2472fb68fcc3de3778f6b84118fb7dd1 (diff)
asn1p_free -> asn1p_delete
-rw-r--r--libasn1parser/asn1p_module.c2
-rw-r--r--libasn1parser/asn1p_module.h2
-rw-r--r--libasn1parser/asn1parser.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/libasn1parser/asn1p_module.c b/libasn1parser/asn1p_module.c
index 0202f0ff..8a47df66 100644
--- a/libasn1parser/asn1p_module.c
+++ b/libasn1parser/asn1p_module.c
@@ -52,7 +52,7 @@ asn1p_new() {
void
-asn1p_free(asn1p_t *asn) {
+asn1p_delete(asn1p_t *asn) {
if(asn) {
asn1p_module_t *mod;
while((mod = TQ_REMOVE(&(asn->modules), mod_next)))
diff --git a/libasn1parser/asn1p_module.h b/libasn1parser/asn1p_module.h
index 618c6e7d..5e7ce15d 100644
--- a/libasn1parser/asn1p_module.h
+++ b/libasn1parser/asn1p_module.h
@@ -93,7 +93,7 @@ typedef struct asn1p_s {
} asn1p_t;
asn1p_t *asn1p_new(void);
-void asn1p_free(asn1p_t *asn);
+void asn1p_delete(asn1p_t *asn);
#endif /* ASN1_PARSER_MODULE_H */
diff --git a/libasn1parser/asn1parser.c b/libasn1parser/asn1parser.c
index 6c8faf00..a2e2ae28 100644
--- a/libasn1parser/asn1parser.c
+++ b/libasn1parser/asn1parser.c
@@ -56,7 +56,7 @@ asn1p_parse_buffer(const char *buffer, int size /* = -1 */, enum asn1p_flags fla
if(_asn1p_fix_modules(a, "-"))
return NULL; /* FIXME: destroy (a) */
} else if(a) {
- asn1p_free(a);
+ asn1p_delete(a);
a = NULL;
}
@@ -113,7 +113,7 @@ asn1p_parse_file(const char *filename, enum asn1p_flags flags) {
if(_asn1p_fix_modules(a, filename))
return NULL; /* FIXME: destroy (a) */
} else if(a) {
- asn1p_free(a);
+ asn1p_delete(a);
a = NULL;
}