freemyipod r799 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r798‎ | r799 | r800 >
Date:16:09, 19 November 2011
Author:user890104
Status:new
Tags:
Comment:
emCOREFS, ipoddfu_c: stop looking for device if we already have found one, also proprely print a ssize_t value
Modified paths:
  • /emcore/trunk/tools/emcorefs/usb.c (modified) (history)
  • /tools/ipoddfu_c/usb.c (modified) (history)

Diff [purge]

Index: tools/ipoddfu_c/usb.c
@@ -73,7 +73,7 @@
7474 return devs_cnt;
7575 }
7676
77 - printf("Found %d USB devices!\n", (int) devs_cnt);
 77+ printf("Found %Zd USB devices!\n", devs_cnt);
7878
7979 for (i = 0; i < devs_cnt; ++i)
8080 {
@@ -158,6 +158,7 @@
159159 }
160160
161161 found = 1;
 162+ break;
162163 }
163164 }
164165
Index: emcore/trunk/tools/emcorefs/usb.c
@@ -193,6 +193,7 @@
194194 #endif
195195
196196 found = 1;
 197+ break;
197198 }
198199 }
199200