static int check_for_block_signature(BlockDriverState *bs, const uint8_t *buf)

{

    static const uint8_t signatures[][4] = {

        { 'Q', 'F', 'I', 0xfb }, /* qcow/qcow2 */

        { 'C', 'O', 'W', 'D' }, /* VMDK3 */

        { 'V', 'M', 'D', 'K' }, /* VMDK4 */

        { 'O', 'O', 'O', 'M' }, /* UML COW */

        {}

    };

    int i;



    for (i = 0; signatures[i][0] != 0; i++) {

        if (memcmp(buf, signatures[i], 4) == 0) {

            return 1;

        }

    }



    return 0;

}

static int check_for_block_signature(BlockDriverState *bs, const uint8_t *buf)

{

    static const uint8_t signatures[][4] = {

        { 'Q', 'F', 'I', 0xfb }, 

        { 'C', 'O', 'W', 'D' }, 

        { 'V', 'M', 'D', 'K' }, 

        { 'O', 'O', 'O', 'M' }, 

        {}

    };

    int i;



    for (i = 0; signatures[i][0] != 0; i++) {

        if (memcmp(buf, signatures[i], 4) == 0) {

            return 1;

        }

    }



    return 0;

}

static int check_for_block_signature(BlockDriverState *bs, const uint8_t *buf)     static const uint8_t signatures[][4] = {         {}     };     int i;     for (i = 0; signatures[i][0] != 0; i++) {         if (memcmp(buf, signatures[i], 4) == 0) {             return 1;     return 0;     return 0;
static int FUNC_0(BlockDriverState *VAR_0, const uint8_t *VAR_1)

{

    static const uint8_t VAR_2[][4] = {

        { 'Q', 'F', 'I', 0xfb }, 

        { 'C', 'O', 'W', 'D' }, 

        { 'V', 'M', 'D', 'K' }, 

        { 'O', 'O', 'O', 'M' }, 

        {}

    };

    int VAR_3;



    for (VAR_3 = 0; VAR_2[VAR_3][0] != 0; VAR_3++) {

        if (memcmp(VAR_1, VAR_2[VAR_3], 4) == 0) {

            return 1;

        }

    }



    return 0;

}

static int FUNC_0(BlockDriverState *VAR_0, const uint8_t *VAR_1)
{ static const uint8_t VAR_2[][4] = { { 'Q', 'F', 'I', 0xfb }, { 'C', 'O', 'W', 'D' }, { 'V', 'M', 'D', 'K' }, { 'O', 'O', 'O', 'M' }, {} }; int VAR_3; for (VAR_3 = 0; VAR_2[VAR_3][0] != 0; VAR_3++) { if (memcmp(VAR_1, VAR_2[VAR_3], 4) == 0) { return 1; } } return 0; }