Browse Source

Linting

master
Dusk 2 months ago
parent
commit
c7ec5e45e4
  1. 2
      Makefile
  2. 2
      libkenoma
  3. 5
      src/persistence/connection.c

2
Makefile

@ -1,7 +1,7 @@
CC = cc
LIBKENOMA_DIR = libkenoma
LIBKENOMA_SO = $(LIBKENOMA_DIR)/build/libkenoma.so
CFLAGS = -lkenoma -ljson-c -lcurl -I./$(LIBKENOMA_DIR)/include -L./$(LIBKENOMA_DIR)/build -Wl,-rpath=./$(LIBKENOMA_DIR)/build
CFLAGS = -lkenoma -ljson-c -lcurl -I./$(LIBKENOMA_DIR)/include -L./$(LIBKENOMA_DIR)/build -Wl,-rpath=./$(LIBKENOMA_DIR)/build -Wall -Wextra
TARGET = kenocli
SRCDIR = src
SOURCES = $(shell find src -type f -iname '*.c')

2
libkenoma

@ -1 +1 @@
Subproject commit 3e712b67c686d465e5d971fa863299bcb49fd896
Subproject commit ee9e37829756d6772419132fcce96064979f5292

5
src/persistence/connection.c

@ -113,7 +113,10 @@ kma_conn *loadConnection(char *filename)
// TODO: Maybe rename listConnections function to getConnectionList?
void destroyListConnections(char** connectionList){
if (connectionList) {
for (int i = 0; connectionList[i]; i++) free(connectionList[i]); free(connectionList);
for (int i = 0; connectionList[i]; i++) {
free(connectionList[i]);
free(connectionList);
}
}
}

Loading…
Cancel
Save