Skip to content

Commit

Permalink
warnings fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
planetbeing committed Jul 21, 2008
1 parent f3a5e58 commit 9a4a40d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions dfu-util/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,6 @@ int download(AbstractFile* file, unsigned int transfer_size, int final_reset)
struct dfu_status status;
struct usb_dfu_func_descriptor func_dfu;
char *alt_name = NULL; /* query alt name if non-NULL */
int page_size = getpagesize();
int ret;

printf("dfu-util - (C) 2007 by OpenMoko Inc. Hacked by the iPhone Dev Team\n"
Expand Down Expand Up @@ -480,7 +479,7 @@ int download(AbstractFile* file, unsigned int transfer_size, int final_reset)
if (ret < 0) {
fprintf(stderr, "Error obtaining DFU functional "
"descriptor: %s\n", usb_strerror());
transfer_size = page_size;
transfer_size = 0x800;
} else {
func_dfu.wTransferSize = LE2CPU16(func_dfu.wTransferSize);
transfer_size = func_dfu.wTransferSize;
Expand Down
2 changes: 1 addition & 1 deletion hfs/hfslib.c
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ int copyAcrossVolumes(Volume* volume1, Volume* volume2, char* path1, char* path2
printf("retrieving... "); fflush(stdout);
get_hfs(volume1, path1, tmpFile);
tmpFile->seek(tmpFile, 0);
printf("writing (%ld)... ", tmpFile->getLength(tmpFile)); fflush(stdout);
printf("writing (%ld)... ", (long) tmpFile->getLength(tmpFile)); fflush(stdout);
ret = add_hfs(volume2, tmpFile, path2);
printf("done\n");

Expand Down

0 comments on commit 9a4a40d

Please sign in to comment.