From a4b8ef38b1d7a26b4e6bfa966f021a237bf16ce1 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 23 Aug 2025 18:20:43 -0400 Subject: Lots of cleanups --- lib/commands/commands.c | 2 +- lib/random/chacha.h | 2 +- lib/time/time.tm | 1 + lib/time/time_defs.h | 3 ++- 4 files changed, 5 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/commands/commands.c b/lib/commands/commands.c index 1e9afe8e..80710387 100644 --- a/lib/commands/commands.c +++ b/lib/commands/commands.c @@ -23,7 +23,7 @@ static void xpipe(int fd[2]) { } int run_command(Text_t exe, List_t arg_list, Table_t env_table, - OptionalList_t input_bytes, List_t *output_bytes, List_t *error_bytes) + OptionalList_t input_bytes, List_t *output_bytes, List_t *error_bytes) { pthread_testcancel(); diff --git a/lib/random/chacha.h b/lib/random/chacha.h index 4b1283ed..b803c24a 100644 --- a/lib/random/chacha.h +++ b/lib/random/chacha.h @@ -86,7 +86,7 @@ chacha_encrypt_bytes(chacha_ctx *chacha, const u8 *m, u8 *c, u32 bytes) { u32 x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15; u32 j0, j1, j2, j3, j4, j5, j6, j7, j8, j9, j10, j11, j12, j13, j14, j15; - u8 *ctarget = NULL; + u8 *ctarget = (u8*)0; u8 tmp[64]; unsigned int i; diff --git a/lib/time/time.tm b/lib/time/time.tm index 456b5f08..d26d7218 100644 --- a/lib/time/time.tm +++ b/lib/time/time.tm @@ -1,4 +1,5 @@ # Time - a module for dealing with dates and times +use use ./time_defs.h enum Weekday(Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday) diff --git a/lib/time/time_defs.h b/lib/time/time_defs.h index 30000983..2ae1d9e4 100644 --- a/lib/time/time_defs.h +++ b/lib/time/time_defs.h @@ -1,6 +1,7 @@ #pragma once -#include +#include #include +#include typedef struct timeval Time; -- cgit v1.2.3