src: use 'byte' instead of 'upx_byte'; NFCI

This commit is contained in:
Markus F.X.J. Oberhumer
2023-02-21 19:27:23 +01:00
parent 4a8efd2e2f
commit e1edc5f50a
50 changed files with 535 additions and 513 deletions
+2 -2
View File
@@ -59,7 +59,7 @@ const int *PackCom::getFilters() const {
**************************************************************************/
bool PackCom::canPack() {
unsigned char buf[128];
byte buf[128];
fi->readx(buf, sizeof(buf));
if (memcmp(buf, "MZ", 2) == 0 || memcmp(buf, "ZM", 2) == 0) // .exe
@@ -123,7 +123,7 @@ void PackCom::buildLoader(const Filter *ft) {
}
}
void PackCom::patchLoader(OutputFile *fo, upx_byte *loader, int lsize, unsigned calls) {
void PackCom::patchLoader(OutputFile *fo, byte *loader, int lsize, unsigned calls) {
const int e_len = getLoaderSectionStart("COMCUTPO");
const int d_len = lsize - e_len;
assert(e_len > 0 && e_len < 128);