From 62e8a6f2ad89be06c7e649c0fc4c564ecad2d070 Mon Sep 17 00:00:00 2001 From: Leo Howell Date: Thu, 8 Oct 2009 14:38:37 +0900 Subject: code format --> version --- lpg/libqr/data-parse.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lpg/libqr/data-parse.c') diff --git a/lpg/libqr/data-parse.c b/lpg/libqr/data-parse.c index d497bdf..4868cd2 100644 --- a/lpg/libqr/data-parse.c +++ b/lpg/libqr/data-parse.c @@ -33,7 +33,7 @@ static enum qr_data_type parse_numeric(const struct qr_data * data, stream = data->bits; buffer = 0; - field_len = get_size_field_length(data->format, QR_DATA_NUMERIC); + field_len = get_size_field_length(data->version, QR_DATA_NUMERIC); if (qr_bitstream_remaining(stream) < field_len) goto invalid; @@ -93,7 +93,7 @@ static enum qr_data_type parse_alpha(const struct qr_data * data, stream = data->bits; buffer = 0; - field_len = get_size_field_length(data->format, QR_DATA_ALPHA); + field_len = get_size_field_length(data->version, QR_DATA_ALPHA); if (qr_bitstream_remaining(stream) < field_len) goto invalid; @@ -150,7 +150,7 @@ static enum qr_data_type parse_8bit(const struct qr_data * data, stream = data->bits; - field_len = get_size_field_length(data->format, QR_DATA_8BIT); + field_len = get_size_field_length(data->version, QR_DATA_8BIT); if (qr_bitstream_remaining(stream) < field_len) return QR_DATA_INVALID; @@ -201,7 +201,7 @@ int qr_get_data_length(const struct qr_data * data) case QR_DATA_ALPHA: case QR_DATA_8BIT: case QR_DATA_KANJI: - field_len = get_size_field_length(data->format, type); + field_len = get_size_field_length(data->version, type); break; default: /* unsupported / invalid */ -- cgit v1.2.3-70-g09d2