This repository has been archived by the owner on Jun 28, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wrap ino_hash and dev_hash for libtar_hash_new to match function type
Fixes the following gcc 8 warnings: append.c: In function ‘tar_append_file’: append.c:109:35: warning: cast between incompatible function types from ‘int (*)(ino_t *)’ {aka ‘int (*)(long unsigned int *)’} to ‘unsigned int (*)(void *, unsigned int)’ [-Wcast-function-type] td->td_h = libtar_hash_new(256, (libtar_hashfunc_t)ino_hash); ^ handle.c: In function ‘tar_init’: handle.c:52:33: warning: cast between incompatible function types from ‘int (*)(dev_t *)’ {aka ‘int (*)(long unsigned int *)’} to ‘unsigned int (*)(void *, unsigned int)’ [-Wcast-function-type] (*t)->h = libtar_hash_new(16, (libtar_hashfunc_t)dev_hash); Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
- Loading branch information