summaryrefslogtreecommitdiff
path: root/lib/parser_aux.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2014-05-16 23:48:27 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2014-05-16 23:48:27 +0200
commitf93acf7f0a3f19692c71fc9022981b6f64ffdbc1 (patch)
treec8ba23fa9042261c1bfab1bbb9082a278e0eafe3 /lib/parser_aux.c
parent3d577dd07e6f8229cc0785e270908bd0d970e890 (diff)
downloadlibtasn1-f93acf7f0a3f19692c71fc9022981b6f64ffdbc1.tar.gz
libtasn1-f93acf7f0a3f19692c71fc9022981b6f64ffdbc1.tar.bz2
libtasn1-f93acf7f0a3f19692c71fc9022981b6f64ffdbc1.zip
simplify ltostr()
Diffstat (limited to 'lib/parser_aux.c')
-rw-r--r--lib/parser_aux.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/lib/parser_aux.c b/lib/parser_aux.c
index 31d1770..2ca4e61 100644
--- a/lib/parser_aux.c
+++ b/lib/parser_aux.c
@@ -531,41 +531,6 @@ _asn1_delete_list_and_nodes (void)
}
}
-
-char *
-_asn1_ltostr (long v, char *str)
-{
- long d, r;
- char temp[20];
- int count, k, start;
-
- if (v < 0)
- {
- str[0] = '-';
- start = 1;
- v = -v;
- }
- else
- start = 0;
-
- count = 0;
- do
- {
- d = v / 10;
- r = v - d * 10;
- temp[start + count] = '0' + (char) r;
- count++;
- v = d;
- }
- while (v);
-
- for (k = 0; k < count; k++)
- str[k + start] = temp[start + count - k - 1];
- str[count + start] = 0;
- return str;
-}
-
-
/******************************************************************/
/* Function : _asn1_change_integer_value */
/* Description: converts into DER coding the value assign to an */