IMD2DSK: Drop unused <getopt.h> and minor fixes

This commit is contained in:
Tony Lawrence
2024-11-21 16:15:36 -05:00
committed by Paul Koning
parent 302faa3658
commit a6fb802807

View File

@@ -40,7 +40,6 @@
#include <assert.h>
#include <ctype.h>
#include <getopt.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
@@ -52,12 +51,10 @@
__pragma(pack(push, 1)) \
__VA_ARGS__ \
__pragma(pack(pop))
#else
# if defined(__GNUC__)
# define PACKED(...) \
#elif defined(__GNUC__)
# define PACKED(...) \
__VA_ARGS__ \
__attribute__((packed))
# endif
#endif
@@ -567,7 +564,7 @@ int main(int argc, char* argv[])
long pos;
p = 1;
if (argc > 3) {
if (argc > 1) {
do {
if (strcmp(argv[p], "-v") == 0) {
++verbose;