Permalink
Browse files

Fixed warnings and targeted dfu-util specificly so systems with multi…

…ple DFU devices should now work with it
  • Loading branch information...
1 parent 23907d2 commit 4b574bef29477a5d42527127096fd9055dc861a5 planetbeing committed Jan 15, 2009
Showing with 5 additions and 1 deletion.
  1. +4 −0 dfu-util/main.c
  2. +1 −1 ipsw-patch/libxpwn.c
View
@@ -334,6 +334,10 @@ int download(AbstractFile* file, unsigned int transfer_size, int final_reset)
memset(dif, 0, sizeof(*dif));
+ dif->flags = DFU_IFF_VENDOR | DFU_IFF_PRODUCT;
+ dif->vendor = 0x05ac;
+ dif->product = 0x1222;
+
usb_init();
//usb_set_debug(255);
usb_find_busses();
@@ -15,7 +15,7 @@ void TestByteOrder()
}
void defaultCallback(const char* Message) {
- printf(Message);
+ printf("%s", Message);
}
void init_libxpwn() {

0 comments on commit 4b574be

Please sign in to comment.