Ignore:
Timestamp:
2011-04-07T21:38:17Z (13 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
033cbf82
Parents:
3acb285 (diff), ccca251 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/cmds/modules/cat/cat.c

    r3acb285 r8436590  
    164164{
    165165        int fd, bytes = 0, count = 0, reads = 0;
    166         off64_t total = 0;
    167166        char *buff = NULL;
    168167        int i;
     
    174173                return 1;
    175174        }
    176 
    177         total = lseek(fd, 0, SEEK_END);
    178         lseek(fd, 0, SEEK_SET);
    179175
    180176        if (NULL == (buff = (char *) malloc(blen + 1))) {
     
    199195                                        wchar_t c = str_decode(buff, &offset, bytes);
    200196                                        if (c == 0) {
    201                                                 // reached end of string
     197                                                /* Reached end of string */
    202198                                                break;
    203199                                        }
     
    232228        int rc;
    233229       
    234         // reset global state
    235         // TODO: move to structure?
     230        /*
     231         * reset global state
     232         * TODO: move to structure?
     233         */
    236234        paging_enabled = false;
    237235        chars_remaining = 0;
Note: See TracChangeset for help on using the changeset viewer.