Changeset 1c87d79 in mainline


Ignore:
Timestamp:
2008-08-24T07:18:58Z (16 years ago)
Author:
Tim Post <echo@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
814c4f5
Parents:
ab5a45e0
Message:

cat: no reason to set i = optind twice :)

File:
1 edited

Legend:

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

    rab5a45e0 r1c87d79  
    9595        total = lseek(fd, 0, SEEK_END);
    9696        lseek(fd, 0, SEEK_SET);
     97
    9798        if (NULL == (buff = (char *) malloc(blen + 1))) {
    9899                close(fd);
     
    172173        }
    173174
    174         i = optind;
    175 
    176175        if (buffer <= 0)
    177176                buffer = CAT_DEFAULT_BUFLEN;
Note: See TracChangeset for help on using the changeset viewer.