aboutsummaryrefslogtreecommitdiffstats
path: root/skeletons
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2004-06-17 23:46:45 +0000
committerLev Walkin <vlm@lionet.info>2004-06-17 23:46:45 +0000
commit34b2a93fc3a58fd609c5147dda7f3868178db891 (patch)
tree63d61828e82b192661816cd8da3d859f1831bbe5 /skeletons
parent0787ff0e6af67fad3dde5c6a1fbbf35ef9ac27c0 (diff)
signedness fixed
Diffstat (limited to 'skeletons')
-rw-r--r--skeletons/OBJECT_IDENTIFIER.c2
-rw-r--r--skeletons/RELATIVE-OID.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/skeletons/OBJECT_IDENTIFIER.c b/skeletons/OBJECT_IDENTIFIER.c
index 5bb045ae..c910a8cc 100644
--- a/skeletons/OBJECT_IDENTIFIER.c
+++ b/skeletons/OBJECT_IDENTIFIER.c
@@ -548,7 +548,7 @@ OBJECT_IDENTIFIER_set_arcs(OBJECT_IDENTIFIER_t *oid, void *arcs, unsigned int ar
arcs, arc_type_size, 0);
}
- assert((bp - buf) <= size);
+ assert((unsigned)(bp - buf) <= size);
/*
* Replace buffer.
diff --git a/skeletons/RELATIVE-OID.c b/skeletons/RELATIVE-OID.c
index b5c346a5..ab4c3667 100644
--- a/skeletons/RELATIVE-OID.c
+++ b/skeletons/RELATIVE-OID.c
@@ -100,8 +100,8 @@ int
RELATIVE_OID_set_arcs(RELATIVE_OID_t *roid, void *arcs, unsigned int arc_type_size, unsigned int arcs_slots) {
uint8_t *buf;
uint8_t *bp;
- int size;
- int i;
+ unsigned int size;
+ unsigned int i;
if(roid == NULL || arcs == NULL || arc_type_size < 1) {
errno = EINVAL;
@@ -126,7 +126,7 @@ RELATIVE_OID_set_arcs(RELATIVE_OID_t *roid, void *arcs, unsigned int arc_type_si
arcs, arc_type_size, 0);
}
- assert((bp - buf) <= size);
+ assert((unsigned)(bp - buf) <= size);
/*
* Replace buffer.