UDS hash implemented

FW has seg fault
This commit is contained in:
atul.jha 2020-05-19 15:57:27 +02:00
parent 778bbe1ff2
commit 351686119b
5 changed files with 7 additions and 19 deletions

View File

@ -1,8 +0,0 @@
#include "fun1.h"
int fun1()
{
printf("Hello from FN1\n");
// fun2();
return 0;
}

View File

@ -1,5 +0,0 @@
#include <stdio.h>
int fun1();

View File

@ -1,9 +1,10 @@
#include "fun1.h"
#include "layer2.h"
int main()
{
printf("Hello World\n");
fun1();
printf("Hello World\n\n\n");
startProtocol();
printf("\n\nSeccessful exit\n");
return 0;
}

View File

@ -2,7 +2,7 @@ CC=gcc
IDIR=./include
LDIR=./lib
ODIR=./out
_DEPS = fun1.h
_DEPS = layer2.h layer1.h
DEPS = $(pathsbst %,(IDIR)/%,%(_DEPS))
@ -11,8 +11,8 @@ CFLAGS= -I. -T$(IDIR)
.PHONY: all clean
all: main.c fun1.c
${CC} -o $(ODIR)/main2 main.c fun1.c
all: main.c layer1.c
${CC} -o $(ODIR)/main2 main.c layer1.c layer2.c -lssl -lcrypto
clean:
rm -r $(ODIR)/*

BIN
trial1/out/main2 Normal file → Executable file

Binary file not shown.