chore: updated readme and makefile
All checks were successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/docker Pipeline was successful

This commit is contained in:
Jef Roosens 2024-03-09 13:29:10 +01:00
parent 94da7584aa
commit ce0abcdc25
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB
4 changed files with 11 additions and 18 deletions

View file

@ -34,10 +34,10 @@ bool lander_insert_entry(lnm_http_loop_ctx *ctx, bool secure) {
if (key_len == 0) {
// Generate a random key to insert
key_len = secure ? 16 : 4;
char *key_s = malloc((key_len + 1) * sizeof(char));
key_s = malloc((key_len + 1) * sizeof(char));
randomize_key(key_s, key_len);
lsm_str_init(&key, key_s);
randomize_key((char *)key_s, key_len);
lsm_str_init(&key, (char *)key_s);
} else {
lsm_str_init_copy_n(&key, key_s, key_len);
}

View file

@ -6,7 +6,6 @@
#include "lnm/log.h"
#include "lander.h"
#include "log.h"
const char *lander_server = "lander/" LANDER_VERSION;
@ -102,7 +101,7 @@ int main() {
srand(time(NULL));
lnm_log_init_global();
lnm_log_register_stdout(lnm_log_level_debug);
lnm_log_register_stdout(lnm_log_level_info);
ENV(api_key, "LANDER_API_KEY");
ENV_OPT(port_str, "LANDER_PORT", "18080");
@ -131,13 +130,4 @@ int main() {
lsm_store_size(c_gctx->store));
lnm_http_loop *hl = loop_init(c_gctx, api_key);
lnm_http_loop_run(hl, port, 1, 0);
/* http_loop *hl = http_loop_init( */
/* lander_routes, sizeof(lander_routes) / sizeof(lander_routes[0]),
* c_gctx, */
/* lander_ctx_init, (void (*)(void *))lander_ctx_reset, */
/* (void (*)(void *))lander_ctx_free); */
/* http_loop_set_api_key(hl, api_key); */
/* http_loop_run(hl, port); */
}