mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-13 19:13:44 +00:00
Fix a brunch of -Wextra warnings:
- 'static' is not at beginning of declaration; - unused parameter; - comparison between signed and unsigned.
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
#include "config.h"
|
||||
#endif // HAVE_CONFIG_H
|
||||
|
||||
#include <err.h>
|
||||
#include <stdio.h>
|
||||
#include <nfc/nfc.h>
|
||||
|
||||
@@ -39,6 +40,10 @@ int main(int argc, const char *argv[])
|
||||
byte_t send[] = "Hello Mars!";
|
||||
nfc_device_t *pnd = nfc_connect(NULL);
|
||||
|
||||
if (argc > 1) {
|
||||
errx (1, "usage: %s", argv[0]);
|
||||
}
|
||||
|
||||
if (!pnd || !nfc_target_init(pnd, abtRecv, &szRecvBits)) {
|
||||
printf("unable to connect or initialize\n");
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user