diff options
author | Lev Walkin <vlm@lionet.info> | 2004-09-24 21:01:43 +0000 |
---|---|---|
committer | Lev Walkin <vlm@lionet.info> | 2004-09-24 21:01:43 +0000 |
commit | 33c16ba73320412ba750cbf55f6777ac20c3a4ed (patch) | |
tree | b65ab987e6720bba3abfc514b5d0a28398a42198 /libasn1fix | |
parent | 11c3e1704f3433fe3e104cb1b8c6e0de2d0fc49c (diff) |
PRIdASN instead of lld
Diffstat (limited to 'libasn1fix')
-rw-r--r-- | libasn1fix/asn1fix_crange.c | 6 | ||||
-rw-r--r-- | libasn1fix/asn1fix_enum.c | 4 | ||||
-rw-r--r-- | libasn1fix/asn1fix_misc.c | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/libasn1fix/asn1fix_crange.c b/libasn1fix/asn1fix_crange.c index e35ecad2..f6e11113 100644 --- a/libasn1fix/asn1fix_crange.c +++ b/libasn1fix/asn1fix_crange.c @@ -157,7 +157,7 @@ _edge_value(const asn1cnst_edge_t *edge) { case ARE_MIN: strcpy(buf, "MIN"); break; case ARE_MAX: strcpy(buf, "MAX"); break; case ARE_VALUE: - snprintf(buf, sizeof(buf), "%lld", (long long)edge->value); + snprintf(buf, sizeof(buf), "%" PRIdASN, edge->value); } return buf; } @@ -280,9 +280,9 @@ static int _range_fill(asn1p_value_t *val, const asn1cnst_range_t *minmax, asn1c switch(val->type) { case ATV_INTEGER: if(type != ACT_EL_RANGE && type != ACT_CT_SIZE) { - FATAL("Integer %lld value invalid " + FATAL("Integer %" PRIdASN " value invalid " "for %s constraint at line %d", - (long long)val->value.v_integer, + val->value.v_integer, asn1p_constraint_type2str(type), lineno); return -1; } diff --git a/libasn1fix/asn1fix_enum.c b/libasn1fix/asn1fix_enum.c index 8a90a435..4eb98135 100644 --- a/libasn1fix/asn1fix_enum.c +++ b/libasn1fix/asn1fix_enum.c @@ -102,9 +102,9 @@ asn1f_fix_enum(arg_t *arg) { */ FATAL( "Enumeration %s at line %d: " - "Explicit value \"%s(%lld)\" " + "Explicit value \"%s(%" PRIdASN ")\" " "is not greater " - "than previous values (max %lld)", + "than previous values (max %" PRIdASN ")", expr->Identifier, ev->_lineno, ev->Identifier, diff --git a/libasn1fix/asn1fix_misc.c b/libasn1fix/asn1fix_misc.c index c022abce..b049d1ae 100644 --- a/libasn1fix/asn1fix_misc.c +++ b/libasn1fix/asn1fix_misc.c @@ -51,8 +51,8 @@ asn1f_printable_value(asn1p_value_t *v) { memcpy(buf + sizeof(buf) - 4, "...", 4); return buf; case ATV_INTEGER: - ret = snprintf(buf, sizeof(buf), "%lld", - (long long)v->value.v_integer); + ret = snprintf(buf, sizeof(buf), "%" PRIdASN, + v->value.v_integer); if(ret >= (ssize_t)sizeof(buf)) memcpy(buf + sizeof(buf) - 4, "...", 4); return buf; |