Skip to content

Commit 4ff796b

Browse files
committed
Rename errno to code
1 parent 9144eff commit 4ff796b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/mfoc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ int main(int argc, char *const argv[])
753753
exit(EXIT_FAILURE);
754754
}
755755

756-
void usage(FILE *stream, int errno)
756+
void usage(FILE *stream, int code)
757757
{
758758
fprintf(stream, "Usage: mfoc [-h] [-k key] [-f file] ... [-P probnum] [-T tolerance] [-O output]\n");
759759
fprintf(stream, "\n");
@@ -776,7 +776,7 @@ void usage(FILE *stream, int errno)
776776
fprintf(stream, "\n");
777777
fprintf(stream, "This is mfoc version %s.\n", PACKAGE_VERSION);
778778
fprintf(stream, "For more information, run: 'man mfoc'.\n");
779-
exit(errno);
779+
exit(code);
780780
}
781781

782782
void mf_init(mfreader *r)

src/mfoc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ typedef struct {
8282
} countKeys;
8383

8484

85-
void usage(FILE *stream, int errno);
85+
void usage(FILE *stream, int code);
8686
void mf_init(mfreader *r);
8787
void mf_configure(nfc_device *pdi);
8888
void mf_select_tag(nfc_device *pdi, nfc_target *pnt);

0 commit comments

Comments
 (0)