fix compilation issues

This commit is contained in:
Liam Waldron 2023-05-16 12:19:02 -04:00
parent f6b385a5b4
commit 06ee17fd3e
2 changed files with 1 additions and 12 deletions

View File

@ -3,7 +3,7 @@ include config.mk
all: all:
$(CC) $(CFLAGS) $(LDFLAGS) -c src/ecrypt.c -o src/ecrypt.o $(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/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 $(CC) $(CFLAGS) $(LDFLAGS) -o src/ecrypt src/ecrypt.o src/checkkey.o src/genkey.o
install: install:

View File

@ -12,11 +12,6 @@ checkkey(int argc, char *argv[])
int cnt2 = 0; int cnt2 = 0;
int flg = 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"); key1 = fopen(argv[1], "r");
if (key1 == NULL) { if (key1 == NULL) {
printf("cannot open local first key file\n"); printf("cannot open local first key file\n");
@ -62,9 +57,3 @@ checkkey(int argc, char *argv[])
return 0; return 0;
} }
int
main(int argc, char *argv[])
{
checkkey(argc, argv);
}