wrong parameter to get opt, ws cleanup, and -O2

This commit is contained in:
Jeffrey Quesnelle
2016-08-01 13:53:57 -04:00
parent 2fd4d3f7d6
commit a269f09805
2 changed files with 108 additions and 108 deletions
+2 -2
View File
@@ -1,13 +1,13 @@
CXX=g++ CXX=g++
CC=gcc CC=gcc
CFLAGS=-g -c CFLAGS=-g -c -O2
LDFLAGS= LDFLAGS=
AR=ar AR=ar
all: icsscand all: icsscand
icsscand: icsscand.o icsscand: icsscand.o
$(CC) $(LDFLAGS) icsscand.o -o icsscand -lpthread -lftdi -licsneoapi $(CC) $(LDFLAGS) icsscand.o -o icsscand -lpthread -licsneoapi
icsscand.o: icsscand.c icsscand.o: icsscand.c
$(CC) $(CFLAGS) icsscand.c $(CC) $(CFLAGS) icsscand.c
+1 -1
View File
@@ -563,7 +563,7 @@ int main(int argc, char **argv)
pthread_t probe_thread; pthread_t probe_thread;
/* process command line switches */ /* process command line switches */
while ((opt = getopt(argc, argv, "hF")) != -1) while ((opt = getopt(argc, argv, "hD")) != -1)
{ {
switch(opt) switch(opt)
{ {