size_t instead of confusing ssize_t


git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@391 59561ff5-6e30-0410-9f3c-9617f08c8826
diff --git a/skeletons/ber_tlv_length.c b/skeletons/ber_tlv_length.c
index 7daaaef..bde022a 100644
--- a/skeletons/ber_tlv_length.c
+++ b/skeletons/ber_tlv_length.c
@@ -3,7 +3,6 @@
  * Redistribution and modifications are permitted subject to BSD license.
  */
 #include <asn_internal.h>
-#include <constr_TYPE.h>
 #include <ber_tlv_length.h>
 #include <ber_tlv_tag.h>
 
@@ -117,7 +116,7 @@
 	/* UNREACHABLE */
 }
 
-ssize_t
+size_t
 der_tlv_length_serialize(ber_tlv_len_t len, void *bufp, size_t size) {
 	size_t required_size;	/* Size of len encoding */
 	uint8_t *buf = (uint8_t *)bufp;
diff --git a/skeletons/ber_tlv_length.h b/skeletons/ber_tlv_length.h
index 7e5d5f8..5222bbf 100644
--- a/skeletons/ber_tlv_length.h
+++ b/skeletons/ber_tlv_length.h
@@ -31,10 +31,10 @@
 
 /*
  * This function serializes the length (L from TLV) in DER format.
- * It always return number of bytes necessary to represent the length,
+ * It always returns number of bytes necessary to represent the length,
  * it is a caller's responsibility to check the return value
  * against the supplied buffer's size.
  */
-ssize_t der_tlv_length_serialize(ber_tlv_len_t len, void *bufptr, size_t size);
+size_t der_tlv_length_serialize(ber_tlv_len_t len, void *bufptr, size_t size);
 
 #endif	/* _BER_TLV_LENGTH_H_ */
diff --git a/skeletons/ber_tlv_tag.c b/skeletons/ber_tlv_tag.c
index d66b788..43a2d1a 100644
--- a/skeletons/ber_tlv_tag.c
+++ b/skeletons/ber_tlv_tag.c
@@ -3,7 +3,6 @@
  * Redistribution and modifications are permitted subject to BSD license.
  */
 #include <asn_internal.h>
-#include <constr_TYPE.h>
 #include <ber_tlv_tag.h>
 #include <errno.h>
 
@@ -100,7 +99,7 @@
 }
 
 
-ssize_t
+size_t
 ber_tlv_tag_serialize(ber_tlv_tag_t tag, void *bufp, size_t size) {
 	int tclass = BER_TAG_CLASS(tag);
 	ber_tlv_tag_t tval = BER_TAG_VALUE(tag);
diff --git a/skeletons/ber_tlv_tag.h b/skeletons/ber_tlv_tag.h
index 22152ff..c02a686 100644
--- a/skeletons/ber_tlv_tag.h
+++ b/skeletons/ber_tlv_tag.h
@@ -43,10 +43,10 @@
 
 /*
  * This function serializes the tag (T from TLV) in BER format.
- * It always return number of bytes necessary to represent the tag,
+ * It always returns number of bytes necessary to represent the tag,
  * it is a caller's responsibility to check the return value
  * against the supplied buffer's size.
  */
-ssize_t ber_tlv_tag_serialize(ber_tlv_tag_t tag, void *bufptr, size_t size);
+size_t ber_tlv_tag_serialize(ber_tlv_tag_t tag, void *bufptr, size_t size);
 
 #endif	/* _BER_TLV_TAG_H_ */