mirror of
https://github.com/open-simh/simtools.git
synced 2026-05-02 14:20:01 +00:00
IMD2DSK: Drop unused <getopt.h> and minor fixes
This commit is contained in:
committed by
Paul Koning
parent
302faa3658
commit
a6fb802807
@@ -40,7 +40,6 @@
|
|||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <getopt.h>
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@@ -52,12 +51,10 @@
|
|||||||
__pragma(pack(push, 1)) \
|
__pragma(pack(push, 1)) \
|
||||||
__VA_ARGS__ \
|
__VA_ARGS__ \
|
||||||
__pragma(pack(pop))
|
__pragma(pack(pop))
|
||||||
#else
|
#elif defined(__GNUC__)
|
||||||
# if defined(__GNUC__)
|
# define PACKED(...) \
|
||||||
# define PACKED(...) \
|
|
||||||
__VA_ARGS__ \
|
__VA_ARGS__ \
|
||||||
__attribute__((packed))
|
__attribute__((packed))
|
||||||
# endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -567,7 +564,7 @@ int main(int argc, char* argv[])
|
|||||||
long pos;
|
long pos;
|
||||||
|
|
||||||
p = 1;
|
p = 1;
|
||||||
if (argc > 3) {
|
if (argc > 1) {
|
||||||
do {
|
do {
|
||||||
if (strcmp(argv[p], "-v") == 0) {
|
if (strcmp(argv[p], "-v") == 0) {
|
||||||
++verbose;
|
++verbose;
|
||||||
|
|||||||
Reference in New Issue
Block a user