wrong parameter to get opt, ws cleanup, and -O2
parent
2fd4d3f7d6
commit
a269f09805
4
Makefile
4
Makefile
|
|
@ -1,13 +1,13 @@
|
|||
CXX=g++
|
||||
CC=gcc
|
||||
CFLAGS=-g -c
|
||||
CFLAGS=-g -c -O2
|
||||
LDFLAGS=
|
||||
AR=ar
|
||||
|
||||
all: icsscand
|
||||
|
||||
icsscand: icsscand.o
|
||||
$(CC) $(LDFLAGS) icsscand.o -o icsscand -lpthread -lftdi -licsneoapi
|
||||
$(CC) $(LDFLAGS) icsscand.o -o icsscand -lpthread -licsneoapi
|
||||
|
||||
icsscand.o: icsscand.c
|
||||
$(CC) $(CFLAGS) icsscand.c
|
||||
|
|
|
|||
|
|
@ -563,7 +563,7 @@ int main(int argc, char **argv)
|
|||
pthread_t probe_thread;
|
||||
|
||||
/* process command line switches */
|
||||
while ((opt = getopt(argc, argv, "hF")) != -1)
|
||||
while ((opt = getopt(argc, argv, "hD")) != -1)
|
||||
{
|
||||
switch(opt)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue