Changes in uspace/app/bdsh/cmds/modules/cat/cat.c [28a3e74:3cefd70] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/cat/cat.c
r28a3e74 r3cefd70 164 164 { 165 165 int fd, bytes = 0, count = 0, reads = 0; 166 off64_t total = 0; 166 167 char *buff = NULL; 167 168 int i; … … 173 174 return 1; 174 175 } 176 177 total = lseek(fd, 0, SEEK_END); 178 lseek(fd, 0, SEEK_SET); 175 179 176 180 if (NULL == (buff = (char *) malloc(blen + 1))) { … … 195 199 wchar_t c = str_decode(buff, &offset, bytes); 196 200 if (c == 0) { 197 / * Reached end of string */201 // reached end of string 198 202 break; 199 203 } … … 228 232 int rc; 229 233 230 /* 231 * reset global state 232 * TODO: move to structure? 233 */ 234 // reset global state 235 // TODO: move to structure? 234 236 paging_enabled = false; 235 237 chars_remaining = 0;
Note:
See TracChangeset
for help on using the changeset viewer.