@@ -36,7 +36,7 @@ typedef int sint32;
36
36
typedef unsigned int uint32 ;
37
37
38
38
/** scan command */
39
- static const sint8 anScanCommand [ 0x40 ] = {
39
+ static const unsigned char anScanCommand [ 0x40 ] = {
40
40
0x0e , 0x00 , 0x03 , 0xa8 , 0x00 , 0xb6 , 0xbb , 0xbb ,
41
41
0xb8 , 0xb7 , 0xb8 , 0xb5 , 0xb8 , 0xb9 , 0xb8 , 0xb9 ,
42
42
0xbb , 0xbb , 0xbe , 0xbb , 0x4e , 0x16 , 0xf4 , 0x77 ,
@@ -48,7 +48,7 @@ static const sint8 anScanCommand[ 0x40 ] = {
48
48
};
49
49
50
50
/** init command */
51
- static const sint8 anInitCommand [ 0x40 ] = {
51
+ static const unsigned char anInitCommand [ 0x40 ] = {
52
52
0x03 , 0x00 , 0x00 , 0x00 , 0x02 , 0xfb , 0x0f , 0x00 ,
53
53
0xc4 , 0xf9 , 0x2f , 0x01 , 0x6d , 0x4f , 0x01 , 0x10 ,
54
54
0x44 , 0xf9 , 0x2f , 0x01 , 0x40 , 0x00 , 0x00 , 0x00 ,
@@ -67,7 +67,7 @@ static const sint8 anInitCommand[ 0x40 ] = {
67
67
* \param pnBuffer buffer pointer we want to store the read buffer
68
68
* \return error code
69
69
*/
70
- static sint32 askScanner ( struct fp_img_dev * dev , sint8 * pnRawString , sint32 nLen , sint8 * pnBuffer ) {
70
+ static sint32 askScanner ( struct fp_img_dev * dev , const unsigned char * pnRawString , sint32 nLen , sint8 * pnBuffer ) {
71
71
sint8 anBuf [ 65535 ];
72
72
sint32 nRet ;
73
73
@@ -357,7 +357,6 @@ static int capture( struct fp_img_dev *dev, gboolean unconditional, struct fp_im
357
357
nRet = -1 ;
358
358
}
359
359
360
- end :
361
360
g_free ( pnData );
362
361
363
362
return nRet ;
0 commit comments