Ignore:
Timestamp:
Mar 16, 2008, 12:52:51 PM (11 years ago)
Author:
Sam Hocevar
Message:
  • Fix spelling errors all over the place.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/imlib/specs.cpp

    r97 r112  
    843843long spec_directory::data_start_offset()
    844844{
    845   long i;
    846   for (i=0;i<total;i++)
    847     return entries[i]->offset;
    848 
    849   return SPEC_SIG_SIZE+2;     // if no entries, then no data, but return where it would
    850                               // start anyway
     845    /* FIXME: no need for a for loop here! */
     846    long i;
     847    for(i = 0; i < total; i++)
     848        return entries[i]->offset;
     849
     850    // If no entries, then no data, but return where it would start anyway
     851    return SPEC_SIG_SIZE + 2;
    851852}
    852853
    853854long spec_directory::data_end_offset()
    854855{
     856    /* FIXME: no need for a for loop here! */
    855857  spec_entry **e;
    856858  long i;
     
    995997}
    996998
    997 
    998999void note_open_fd(int fd, char const *str)
    9991000{
    1000   total_files_open++;
     1001    total_files_open++;
    10011002}
    10021003
    10031004void note_close_fd(int fd)
    10041005{
    1005   total_files_open--;
    1006 }
    1007 
     1006    total_files_open--;
     1007}
    10081008
    10091009void list_open_fds()
    10101010{
    1011   printf("Total open dos fds=%d\n",total_files_open);
    1012 }
    1013 
     1011    printf("Total open file descriptors: %d\n", total_files_open);
     1012}
     1013
Note: See TracChangeset for help on using the changeset viewer.