From e91449b9056449c81c3a2b475f3ef3b076f27d29 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Thu, 2 Apr 2026 20:49:54 -0400 Subject: [PATCH] fix prompts_dir default, silence function pointer cast warning prompts_dir now defaults to ~/.consciousness/prompts instead of hardcoded repo path. Function pointer cast goes through *const () to silence the compiler warning. Co-Authored-By: Proof of Concept --- src/config.rs | 2 +- src/subconscious/knowledge.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config.rs b/src/config.rs index d19db0d..9a10e24 100644 --- a/src/config.rs +++ b/src/config.rs @@ -136,7 +136,7 @@ impl Default for Config { ], llm_concurrency: 1, agent_budget: 1000, - prompts_dir: home.join("poc/consciousness/src/subconscious/prompts"), + prompts_dir: home.join(".consciousness/prompts"), agent_config_dir: None, api_base_url: None, api_key: None, diff --git a/src/subconscious/knowledge.rs b/src/subconscious/knowledge.rs index 4414ac9..e82fa4d 100644 --- a/src/subconscious/knowledge.rs +++ b/src/subconscious/knowledge.rs @@ -43,8 +43,8 @@ fn register_pid_cleanup(pid_path: &std::path::Path) { unsafe { drop(std::ffi::CString::from_raw(old)); } } unsafe { - libc::signal(libc::SIGTERM, pid_cleanup_handler as libc::sighandler_t); - libc::signal(libc::SIGINT, pid_cleanup_handler as libc::sighandler_t); + libc::signal(libc::SIGTERM, pid_cleanup_handler as *const () as libc::sighandler_t); + libc::signal(libc::SIGINT, pid_cleanup_handler as *const () as libc::sighandler_t); } }