Changeset 684 in MondoRescue for branches/stable/mondo/mondo/common/libmondo-files.c
- Timestamp:
- Jun 26, 2006, 1:12:48 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/mondo/common/libmondo-files.c
r681 r684 596 596 * @return The length of the file, or -1 for error. 597 597 */ 598 long longlength_of_file(char *filename)598 off_t length_of_file(char *filename) 599 599 { 600 600 /*@ pointers *************************************************** */ … … 602 602 603 603 /*@ long long ************************************************* */ 604 long longlength;604 off_t length; 605 605 606 606 fin = fopen(filename, "r"); … … 611 611 } 612 612 fseeko(fin, 0, SEEK_END); 613 length = ftell (fin);613 length = ftello(fin); 614 614 paranoid_fclose(fin); 615 615 return (length); … … 641 641 642 642 /*@ long [long] ************************************************* */ 643 long longfilelist_length;644 longcurr_pos;643 off_t filelist_length; 644 off_t curr_pos; 645 645 long start_time; 646 646 long current_time; … … 680 680 counter = 0; 681 681 curr_fname[37] = '\0'; 682 curr_pos = ftell (fin) / 1024;682 curr_pos = ftello(fin) / 1024; 683 683 percentage = (int) (curr_pos * 100 / filelist_length); 684 684 time_taken = current_time - start_time; … … 921 921 } 922 922 } else { 923 /* BERLIOS: more than long here ??? */ 923 924 file_len_K = (long) (length_of_file(fname) / 1024); 924 925 }
Note:
See TracChangeset
for help on using the changeset viewer.