Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/taskdump/symtab.c

    r077bc931 r6afc9d7  
    8888        }
    8989
    90         rc = read_all(fd, &elf_hdr, sizeof(elf_header_t));
     90        rc = read(fd, &elf_hdr, sizeof(elf_header_t));
    9191        if (rc != sizeof(elf_header_t)) {
    9292                printf("failed reading elf header\n");
     
    202202 * @return      EOK on success, ENOENT if no such symbol was found.
    203203 */
    204 int symtab_name_to_addr(symtab_t *st, char *name, uintptr_t *addr)
     204int symtab_name_to_addr(symtab_t *st, const char *name, uintptr_t *addr)
    205205{
    206206        size_t i;
     
    310310                return EIO;
    311311
    312         rc = read_all(fd, sec_hdr, sizeof(elf_section_header_t));
     312        rc = read(fd, sec_hdr, sizeof(elf_section_header_t));
    313313        if (rc != sizeof(elf_section_header_t))
    314314                return EIO;
     
    346346        }
    347347
    348         rc = read_all(fd, *ptr, size);
     348        rc = read(fd, *ptr, size);
    349349        if (rc != (ssize_t) size) {
    350350                printf("failed reading chunk\n");
Note: See TracChangeset for help on using the changeset viewer.