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:
parent
ddb38a3006
commit
8af023c478
1 changed files with 3 additions and 2 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Reference in a new issue