Changeset 4998 for trunk/utils/list_smargo.c
- Timestamp:
- 04/14/11 02:41:42 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/utils/list_smargo.c
r4318 r4998 31 31 #define TRUE 1 32 32 33 int out_endpoint;33 int32_t out_endpoint; 34 34 35 static int smartreader_check_endpoint(libusb_device *usb_dev)35 static int32_t smartreader_check_endpoint(libusb_device *usb_dev) 36 36 { 37 37 struct libusb_device_descriptor desc; 38 38 struct libusb_config_descriptor *configDesc; 39 int ret;40 int j,k,l;41 u _int8_t tmpEndpointAddress;42 int nb_endpoint_ok;39 int32_t ret; 40 int32_t j,k,l; 41 uint8_t tmpEndpointAddress; 42 int32_t nb_endpoint_ok; 43 43 44 44 nb_endpoint_ok=0; … … 79 79 libusb_device *dev; 80 80 libusb_device_handle *handle; 81 int i = 0;82 int ret;83 int busid, devid;81 int32_t i = 0; 82 int32_t ret; 83 int32_t busid, devid; 84 84 unsigned char iserialbuffer[128]; 85 85 86 86 while ((dev = devs[i++]) != NULL) { 87 87 struct libusb_device_descriptor desc; 88 int r = libusb_get_device_descriptor(dev, &desc);88 int32_t r = libusb_get_device_descriptor(dev, &desc); 89 89 if (r < 0) { 90 90 fprintf(stderr, "failed to get device descriptor"); … … 115 115 } 116 116 117 int main(int argc, char **argv)117 int32_t main(int32_t argc, char **argv) 118 118 { 119 119 libusb_device **devs; 120 int r;120 int32_t r; 121 121 ssize_t cnt; 122 122 … … 136 136 cnt = libusb_get_device_list(NULL, &devs); 137 137 if (cnt < 0) 138 return (int ) cnt;138 return (int32_t) cnt; 139 139 140 140
Note:
See TracChangeset
for help on using the changeset viewer.