static grub_err_t decomp_getch (struct grub_ntfs_comp *cc, grub_uint8_t *res) { if (cc->cbuf_ofs >= (1U << (cc->log_spc + GRUB_NTFS_BLK_SHR))) { if (decomp_nextvcn (cc)) return grub_errno; } *res = cc->cbuf[cc->cbuf_ofs++]; return 0; }
static grub_err_t decomp_getch (struct grub_ntfs_comp *cc, unsigned char *res) { if (cc->cbuf_ofs >= (cc->spc << BLK_SHR)) { if (decomp_nextvcn (cc)) return grub_errno; } *res = (unsigned char) cc->cbuf[cc->cbuf_ofs++]; return 0; }