On 17/11/06, Andreas Jellinghaus <[EMAIL PROTECTED]> wrote:
card-flex.c: In function 'cyberflex_process_file_attrs':
card-flex.c:419: warning: value computed is not used
no idea what the code meant to do, so not sure if
this is a bug / how to fix it. maybe someone can have
a look?
It looks like the code has been first committed in _as is_ in revision 1661 [1].
I have no idea what it was supposed to do but it is now dead code. The
variable "left" is also unused.
I propose the attached patch.
Bye,
[1] http://www.opensc-project.org/opensc/changeset/1661
--
Dr. Ludovic Rousseau
Index: src/libopensc/card-flex.c
===================================================================
--- src/libopensc/card-flex.c (révision 3058)
+++ src/libopensc/card-flex.c (copie de travail)
@ -365,7 +365,7 @@ cyberflex_process_file_attrs(sc_card_t *
const u8 *p = buf + 2;
const u8 *pos;
u8 b1, b2;
- int left, is_mf = 0;
+ int is_mf = 0;
if (buflen < 14)
return -1;
@@ -414,9 +414,7 @@ cyberflex_process_file_attrs(sc_card_t *
file->status = SC_FILE_STATUS_ACTIVATED;
else
file->status = SC_FILE_STATUS_INVALIDATED;
- left = *p++;
if (0 == is_mf) {
- *p++;
switch (*p) {
case 0x00:
file->ef_structure = SC_FILE_EF_TRANSPARENT;
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel