mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-15 20:13:46 +00:00
Windows: Clean up all compiler warnings and link warnings
- Fixed the suppression of the auto-fixup for linking against MS built libs - Fixed all the formatting warnings by shifting to inttypes.h specifiers - shifted to %lu for DWORD printf
This commit is contained in:
committed by
Philippe Teuwen
parent
bd961222a3
commit
7b917f9a8b
@@ -42,6 +42,7 @@
|
||||
# include "config.h"
|
||||
#endif /* HAVE_CONFIG_H */
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
@@ -100,7 +101,7 @@ static int print_hex_fd4(const uint8_t *pbtData, const size_t szBytes, const cha
|
||||
if (szBytes > MAX_FRAME_LEN) {
|
||||
return -1;
|
||||
}
|
||||
if (fprintf(fd4, "#%s %04zx: ", pchPrefix, szBytes) < 0) {
|
||||
if (fprintf(fd4, "#%s %04" PRIxPTR ": ", pchPrefix, szBytes) < 0) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -225,7 +226,7 @@ main(int argc, char *argv[])
|
||||
}
|
||||
} else {
|
||||
if (szFound < 2) {
|
||||
ERR("%zd device found but two opened devices are needed to relay NFC.", szFound);
|
||||
ERR("%" PRIdPTR " device found but two opened devices are needed to relay NFC.", szFound);
|
||||
nfc_exit(context);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user