Commit 3b51e912cc91467ba1b20e55e5df735f27752ea2
1 parent
b79c0c43
ajout création de lien dans Makefile, correction code avec un exit avant la fin
Showing
2 changed files
with
5 additions
and
3 deletions
Show diff stats
Makefile
src/GetUsbInfos.c
... | ... | @@ -20,8 +20,8 @@ int main(){ |
20 | 20 | int status=libusb_init(&context); |
21 | 21 | if(status!=0) {perror("libusb_init"); exit(-1);} |
22 | 22 | /* ... some code ... */ |
23 | - libusb_exit(context); | |
24 | - | |
23 | + | |
24 | + | |
25 | 25 | // actually enumerates all the usb and gives some infos abot the usb things |
26 | 26 | |
27 | 27 | libusb_device **list; |
... | ... | @@ -43,5 +43,7 @@ int main(){ |
43 | 43 | printf("Product ID 0x0%x\n",desc.idProduct); |
44 | 44 | } |
45 | 45 | libusb_free_device_list(list,1); |
46 | + | |
47 | + libusb_exit(context); | |
46 | 48 | return 0; |
47 | 49 | } | ... | ... |