1
0
Fork 0
mirror of https://github.com/tailix/libkernaux.git synced 2025-02-17 15:45:32 -05:00

Use "uint8_t" instead of "unsigned char"

This commit is contained in:
Alex Kotov 2022-01-11 11:26:33 +05:00
parent ddb38a3006
commit 8af023c478
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08

View file

@ -6,6 +6,7 @@
#include <assert.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#define BUFFER_SIZE (1024 * 1024)
@ -17,8 +18,8 @@ int main(int argc, char **argv)
FILE *const fd = fopen(argv[0], "r");
assert(fd);
unsigned char buffer[BUFFER_SIZE];
const size_t size = fread(buffer, sizeof(unsigned char), BUFFER_SIZE, fd);
uint8_t buffer[BUFFER_SIZE];
const size_t size = fread(buffer, sizeof(uint8_t), BUFFER_SIZE, fd);
assert(size > 0);
assert(KernAux_ELF_Header_is_valid((struct KernAux_ELF_Header*)buffer));