diff options
author | Leo Howell <leo@lwh.jp> | 2009-10-08 14:38:37 +0900 |
---|---|---|
committer | Leo Howell <leo@lwh.jp> | 2009-10-08 14:38:37 +0900 |
commit | 62e8a6f2ad89be06c7e649c0fc4c564ecad2d070 (patch) | |
tree | a870eb56ba9c02e5807d3ce3d556bca98c1f2e8c /lpg/libqr/data-common.c | |
parent | ad59de83b7f82cb812d23ac2bb948ac32fe0ac71 (diff) | |
download | pdf-simple-sign-62e8a6f2ad89be06c7e649c0fc4c564ecad2d070.tar.gz pdf-simple-sign-62e8a6f2ad89be06c7e649c0fc4c564ecad2d070.tar.xz pdf-simple-sign-62e8a6f2ad89be06c7e649c0fc4c564ecad2d070.zip |
code format --> version
Diffstat (limited to 'lpg/libqr/data-common.c')
-rw-r--r-- | lpg/libqr/data-common.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |