From 1a9fcabf89a7d9df61e89e63889331ca17a3612f Mon Sep 17 00:00:00 2001 From: Ludovic Rousseau Date: Fri, 18 May 2012 16:18:45 +0000 Subject: [PATCH] Declare internal function usage() as static --- examples/mifare-classic-format.c | 2 +- examples/mifare-classic-read-ndef.c | 2 +- examples/mifare-classic-write-ndef.c | 2 +- examples/mifare-desfire-create-ndef.c | 2 +- examples/mifare-desfire-ev1-configure-ats.c | 2 +- examples/mifare-desfire-ev1-configure-default-key.c | 2 +- examples/mifare-desfire-ev1-configure-random-uid.c | 2 +- examples/mifare-desfire-format.c | 2 +- examples/mifare-desfire-read-ndef.c | 2 +- examples/mifare-desfire-write-ndef.c | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/examples/mifare-classic-format.c b/examples/mifare-classic-format.c index 8d841cf..498ccdb 100644 --- a/examples/mifare-classic-format.c +++ b/examples/mifare-classic-format.c @@ -125,7 +125,7 @@ try_format_sector (MifareTag tag, MifareClassicSectorNumber sector) return 0; } -void +static void usage(char *progname) { fprintf (stderr, "usage: %s [-fy]\n", progname); diff --git a/examples/mifare-classic-read-ndef.c b/examples/mifare-classic-read-ndef.c index 3770d12..1e1c1ef 100644 --- a/examples/mifare-classic-read-ndef.c +++ b/examples/mifare-classic-read-ndef.c @@ -53,7 +53,7 @@ struct { .interactive = true }; -void +static void usage(char *progname) { fprintf (stderr, "usage: %s -o FILE\n", progname); diff --git a/examples/mifare-classic-write-ndef.c b/examples/mifare-classic-write-ndef.c index 8a37a9d..746b299 100644 --- a/examples/mifare-classic-write-ndef.c +++ b/examples/mifare-classic-write-ndef.c @@ -116,7 +116,7 @@ fix_mad_trailer_block (nfc_device *device, MifareTag tag, MifareClassicSectorNum return 0; } -void +static void usage(char *progname) { fprintf (stderr, "usage: %s -i FILE\n", progname); diff --git a/examples/mifare-desfire-create-ndef.c b/examples/mifare-desfire-create-ndef.c index c3a854a..6b01bbc 100644 --- a/examples/mifare-desfire-create-ndef.c +++ b/examples/mifare-desfire-create-ndef.c @@ -47,7 +47,7 @@ struct { .interactive = true }; -void +static void usage(char *progname) { fprintf (stderr, "This application turns Mifare DESFire targets into NFC Forum Type 4 Tags.\n"); diff --git a/examples/mifare-desfire-ev1-configure-ats.c b/examples/mifare-desfire-ev1-configure-ats.c index 05dbeb1..fb70294 100644 --- a/examples/mifare-desfire-ev1-configure-ats.c +++ b/examples/mifare-desfire-ev1-configure-ats.c @@ -41,7 +41,7 @@ struct { .interactive = true }; -void +static void usage(char *progname) { fprintf (stderr, "usage: %s [-y] [-K 11223344AABBCCDD]\n", progname); diff --git a/examples/mifare-desfire-ev1-configure-default-key.c b/examples/mifare-desfire-ev1-configure-default-key.c index eab0317..ae46a33 100644 --- a/examples/mifare-desfire-ev1-configure-default-key.c +++ b/examples/mifare-desfire-ev1-configure-default-key.c @@ -40,7 +40,7 @@ struct { .interactive = true }; -void +static void usage(char *progname) { fprintf (stderr, "usage: %s [-y]\n", progname); diff --git a/examples/mifare-desfire-ev1-configure-random-uid.c b/examples/mifare-desfire-ev1-configure-random-uid.c index da7540b..111d851 100644 --- a/examples/mifare-desfire-ev1-configure-random-uid.c +++ b/examples/mifare-desfire-ev1-configure-random-uid.c @@ -37,7 +37,7 @@ struct { .interactive = true }; -void +static void usage(char *progname) { fprintf (stderr, "usage: %s [-y] [-K 11223344AABBCCDD]\n", progname); diff --git a/examples/mifare-desfire-format.c b/examples/mifare-desfire-format.c index 5bb4388..0889d4c 100644 --- a/examples/mifare-desfire-format.c +++ b/examples/mifare-desfire-format.c @@ -37,7 +37,7 @@ struct { .interactive = true }; -void +static void usage(char *progname) { fprintf (stderr, "usage: %s [-y] [-K 11223344AABBCCDD]\n", progname); diff --git a/examples/mifare-desfire-read-ndef.c b/examples/mifare-desfire-read-ndef.c index b105ec2..6b9f582 100644 --- a/examples/mifare-desfire-read-ndef.c +++ b/examples/mifare-desfire-read-ndef.c @@ -51,7 +51,7 @@ struct { .interactive = true }; -void +static void usage(char *progname) { fprintf (stderr, "This application reads a NDEF payload from a Mifare DESFire formatted as NFC Forum Type 4 Tag.\n"); diff --git a/examples/mifare-desfire-write-ndef.c b/examples/mifare-desfire-write-ndef.c index 0b36632..a34ebda 100644 --- a/examples/mifare-desfire-write-ndef.c +++ b/examples/mifare-desfire-write-ndef.c @@ -59,7 +59,7 @@ struct { .interactive = true }; -void +static void usage(char *progname) { fprintf (stderr, "This application writes a NDEF payload into a Mifare DESFire formatted as NFC Forum Type 4 Tag.\n");