Skip to content

Commit a6fb802

Browse files
al20878pkoning2
authored andcommitted
IMD2DSK: Drop unused <getopt.h> and minor fixes
1 parent 302faa3 commit a6fb802

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

converters/imd2dsk/imd2dsk.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040

4141
#include <assert.h>
4242
#include <ctype.h>
43-
#include <getopt.h>
4443
#include <stdio.h>
4544
#include <stdint.h>
4645
#include <stdlib.h>
@@ -52,12 +51,10 @@
5251
__pragma(pack(push, 1)) \
5352
__VA_ARGS__ \
5453
__pragma(pack(pop))
55-
#else
56-
# if defined(__GNUC__)
57-
# define PACKED(...) \
54+
#elif defined(__GNUC__)
55+
# define PACKED(...) \
5856
__VA_ARGS__ \
5957
__attribute__((packed))
60-
# endif
6158
#endif
6259

6360

@@ -567,7 +564,7 @@ int main(int argc, char* argv[])
567564
long pos;
568565

569566
p = 1;
570-
if (argc > 3) {
567+
if (argc > 1) {
571568
do {
572569
if (strcmp(argv[p], "-v") == 0) {
573570
++verbose;

0 commit comments

Comments
 (0)