fix compilation issues
This commit is contained in:
parent
f6b385a5b4
commit
06ee17fd3e
2
Makefile
2
Makefile
@ -3,7 +3,7 @@ include config.mk
|
||||
all:
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -c src/ecrypt.c -o src/ecrypt.o
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -c src/checkkey.c -o src/checkkey.o
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -c src/genkey.c -o src/genkey.c
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -c src/genkey.c -o src/genkey.o
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -o src/ecrypt src/ecrypt.o src/checkkey.o src/genkey.o
|
||||
|
||||
install:
|
||||
|
@ -12,11 +12,6 @@ checkkey(int argc, char *argv[])
|
||||
int cnt2 = 0;
|
||||
int flg = 0;
|
||||
|
||||
if (argv < 3) {
|
||||
printf("usage: %s [-g] [-c] [-h] [-v] KEYFILE KEY\n", argv[0]);
|
||||
return 1;
|
||||
}
|
||||
|
||||
key1 = fopen(argv[1], "r");
|
||||
if (key1 == NULL) {
|
||||
printf("cannot open local first key file\n");
|
||||
@ -62,9 +57,3 @@ checkkey(int argc, char *argv[])
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
checkkey(argc, argv);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user