aboutsummaryrefslogtreecommitdiffstats
path: root/libasn1parser/asn1p_ref.c
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2004-06-05 08:17:50 +0000
committerLev Walkin <vlm@lionet.info>2004-06-05 08:17:50 +0000
commitd9bd775af15aa7eacaea301de8344053221b3ba3 (patch)
tree16056f1fa90b24a32b46bcb276b4f5374122125d /libasn1parser/asn1p_ref.c
parent70e702872c991a425f25a5c412d6afada7995b37 (diff)
enforsed compilation with -W -Werror
Diffstat (limited to 'libasn1parser/asn1p_ref.c')
-rw-r--r--libasn1parser/asn1p_ref.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libasn1parser/asn1p_ref.c b/libasn1parser/asn1p_ref.c
index 4ac2b32d..af6f6bb2 100644
--- a/libasn1parser/asn1p_ref.c
+++ b/libasn1parser/asn1p_ref.c
@@ -80,7 +80,8 @@ asn1p_ref_name2lextype(char *name) {
int
asn1p_ref_add_component(asn1p_ref_t *ref, char *name, enum asn1p_ref_lex_type_e lex_type) {
- if(!ref || !name || lex_type < RLT_UNKNOWN || lex_type >= RLT_MAX) {
+ if(!ref || !name
+ || (int)lex_type < RLT_UNKNOWN || lex_type >= RLT_MAX) {
errno = EINVAL;
return -1;
}