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-common.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lpg/libqr/data-common.c') diff --git a/lpg/libqr/data-common.c b/lpg/libqr/data-common.c index c64527a..ac2f198 100644 --- a/lpg/libqr/data-common.c +++ b/lpg/libqr/data-common.c @@ -29,7 +29,7 @@ void qr_free_data(struct qr_data * data) free(data); } -size_t get_size_field_length(int format, enum qr_data_type type) +size_t get_size_field_length(int version, enum qr_data_type type) { static const size_t QR_SIZE_LENGTHS[3][4] = { { 10, 9, 8, 8 }, @@ -46,9 +46,9 @@ size_t get_size_field_length(int format, enum qr_data_type type) default: return 0; } - if (format < 10) + if (version < 10) row = 0; - else if (format < 27) + else if (version < 27) row = 1; else row = 2; -- cgit v1.2.3-70-g09d2