commit f64f5369fa84524ca2a397d34e7b801a0b9bbd5d
parent f82b060d16ff6701fe044408e5ae6ffe569e1004
Author: Jacki <jacki@thejackimonster.de>
Date: Sun, 19 Jul 2026 23:16:01 +0200
Fix warnings and errors from clangd
Signed-off-by: Jacki <jacki@thejackimonster.de>
Diffstat:
15 files changed, 20 insertions(+), 27 deletions(-)
diff --git a/.gitignore b/.gitignore
@@ -21,6 +21,7 @@ Makefile
.settings/
.cache/
.vscode/
+.zed/
# Binary files:
*.o
diff --git a/src/application.h b/src/application.h
@@ -1,6 +1,6 @@
/*
This file is part of GNUnet.
- Copyright (C) 2022--2025 GNUnet e.V.
+ Copyright (C) 2022--2026 GNUnet e.V.
GNUnet is free software: you can redistribute it and/or modify it
under the terms of the GNU Affero General Public License as published
@@ -25,7 +25,6 @@
#ifndef APPLICATION_H_
#define APPLICATION_H_
-#include <stdlib.h>
#include <curses.h>
#include "chat.h"
diff --git a/src/ui/account_create_dialog.c b/src/ui/account_create_dialog.c
@@ -1,6 +1,6 @@
/*
This file is part of GNUnet.
- Copyright (C) 2022--2025 GNUnet e.V.
+ Copyright (C) 2022--2026 GNUnet e.V.
GNUnet is free software: you can redistribute it and/or modify it
under the terms of the GNU Affero General Public License as published
@@ -28,6 +28,7 @@
#include <gnunet/gnunet_util_lib.h>
#include "text_input.h"
+
#include "../application.h"
#include "../util.h"
diff --git a/src/ui/account_create_dialog.h b/src/ui/account_create_dialog.h
@@ -1,6 +1,6 @@
/*
This file is part of GNUnet.
- Copyright (C) 2022 GNUnet e.V.
+ Copyright (C) 2022, 2026 GNUnet e.V.
GNUnet is free software: you can redistribute it and/or modify it
under the terms of the GNU Affero General Public License as published
@@ -25,7 +25,6 @@
#ifndef UI_ACCOUNT_CREATE_DIALOG_H_
#define UI_ACCOUNT_CREATE_DIALOG_H_
-#include <stdlib.h>
#include <curses.h>
struct MESSENGER_Application;
diff --git a/src/ui/accounts.c b/src/ui/accounts.c
@@ -1,6 +1,6 @@
/*
This file is part of GNUnet.
- Copyright (C) 2022--2025 GNUnet e.V.
+ Copyright (C) 2022--2026 GNUnet e.V.
GNUnet is free software: you can redistribute it and/or modify it
under the terms of the GNU Affero General Public License as published
@@ -28,6 +28,7 @@
#include <gnunet/gnunet_chat_lib.h>
#include "list_input.h"
+
#include "../application.h"
#include "../secret.h"
#include "../util.h"
@@ -84,14 +85,14 @@ accounts_event(UI_ACCOUNTS_Handle *accounts,
secret_ptr = secret_lookup(name, &secret_len);
secret = secret_ptr;
-
+
if (!secret)
{
secret_len = 64;
if (GNUNET_OK == GNUNET_CHAT_generate_secret(new_secret, secret_len))
{
new_secret[secret_len] = '\0';
-
+
if (secret_store(name, new_secret, secret_len))
secret = new_secret;
}
diff --git a/src/ui/accounts.h b/src/ui/accounts.h
@@ -1,6 +1,6 @@
/*
This file is part of GNUnet.
- Copyright (C) 2022--2024 GNUnet e.V.
+ Copyright (C) 2022--2024, 2026 GNUnet e.V.
GNUnet is free software: you can redistribute it and/or modify it
under the terms of the GNU Affero General Public License as published
@@ -25,7 +25,6 @@
#ifndef UI_ACCOUNTS_H_
#define UI_ACCOUNTS_H_
-#include <stdlib.h>
#include <curses.h>
#include <gnunet/gnunet_chat_lib.h>
diff --git a/src/ui/chat_open_dialog.c b/src/ui/chat_open_dialog.c
@@ -1,6 +1,6 @@
/*
This file is part of GNUnet.
- Copyright (C) 2022--2025 GNUnet e.V.
+ Copyright (C) 2022--2026 GNUnet e.V.
GNUnet is free software: you can redistribute it and/or modify it
under the terms of the GNU Affero General Public License as published
@@ -28,6 +28,7 @@
#include <gnunet/gnunet_util_lib.h>
#include "text_input.h"
+
#include "../application.h"
#include "../util.h"
diff --git a/src/ui/chat_open_dialog.h b/src/ui/chat_open_dialog.h
@@ -1,6 +1,6 @@
/*
This file is part of GNUnet.
- Copyright (C) 2022 GNUnet e.V.
+ Copyright (C) 2022, 2026 GNUnet e.V.
GNUnet is free software: you can redistribute it and/or modify it
under the terms of the GNU Affero General Public License as published
@@ -25,7 +25,6 @@
#ifndef UI_CHAT_OPEN_DIALOG_H_
#define UI_CHAT_OPEN_DIALOG_H_
-#include <stdlib.h>
#include <curses.h>
struct MESSENGER_Application;
diff --git a/src/ui/chats.h b/src/ui/chats.h
@@ -1,6 +1,6 @@
/*
This file is part of GNUnet.
- Copyright (C) 2022--2024 GNUnet e.V.
+ Copyright (C) 2022--2024, 2026 GNUnet e.V.
GNUnet is free software: you can redistribute it and/or modify it
under the terms of the GNU Affero General Public License as published
@@ -25,7 +25,6 @@
#ifndef UI_CHATS_H_
#define UI_CHATS_H_
-#include <stdlib.h>
#include <curses.h>
#include <gnunet/gnunet_chat_lib.h>
diff --git a/src/ui/list_input.h b/src/ui/list_input.h
@@ -1,6 +1,6 @@
/*
This file is part of GNUnet.
- Copyright (C) 2022 GNUnet e.V.
+ Copyright (C) 2022, 2026 GNUnet e.V.
GNUnet is free software: you can redistribute it and/or modify it
under the terms of the GNU Affero General Public License as published
@@ -26,7 +26,6 @@
#define UI_LIST_INPUT_H_
#include <stdbool.h>
-#include <stdlib.h>
/**
* Resets the list controls.
diff --git a/src/ui/lobby_create_dialog.h b/src/ui/lobby_create_dialog.h
@@ -1,6 +1,6 @@
/*
This file is part of GNUnet.
- Copyright (C) 2022--2023 GNUnet e.V.
+ Copyright (C) 2022--2023, 2026 GNUnet e.V.
GNUnet is free software: you can redistribute it and/or modify it
under the terms of the GNU Affero General Public License as published
@@ -25,7 +25,6 @@
#ifndef UI_LOBBY_CREATE_DIALOG_H_
#define UI_LOBBY_CREATE_DIALOG_H_
-#include <stdlib.h>
#include <curses.h>
#include <gnunet/gnunet_chat_lib.h>
diff --git a/src/ui/lobby_enter_dialog.h b/src/ui/lobby_enter_dialog.h
@@ -1,6 +1,6 @@
/*
This file is part of GNUnet.
- Copyright (C) 2022 GNUnet e.V.
+ Copyright (C) 2022, 2026 GNUnet e.V.
GNUnet is free software: you can redistribute it and/or modify it
under the terms of the GNU Affero General Public License as published
@@ -25,7 +25,6 @@
#ifndef UI_LOBBY_ENTER_DIALOG_H_
#define UI_LOBBY_ENTER_DIALOG_H_
-#include <stdlib.h>
#include <curses.h>
struct MESSENGER_Application;
diff --git a/src/ui/members.h b/src/ui/members.h
@@ -1,6 +1,6 @@
/*
This file is part of GNUnet.
- Copyright (C) 2022--2023 GNUnet e.V.
+ Copyright (C) 2022--2023, 2026 GNUnet e.V.
GNUnet is free software: you can redistribute it and/or modify it
under the terms of the GNU Affero General Public License as published
@@ -26,7 +26,6 @@
#define UI_MEMBERS_H_
#include <stdbool.h>
-#include <stdlib.h>
#include <curses.h>
#include <gnunet/gnunet_chat_lib.h>
diff --git a/src/ui/messages.h b/src/ui/messages.h
@@ -1,6 +1,6 @@
/*
This file is part of GNUnet.
- Copyright (C) 2022--2024 GNUnet e.V.
+ Copyright (C) 2022--2024, 2026 GNUnet e.V.
GNUnet is free software: you can redistribute it and/or modify it
under the terms of the GNU Affero General Public License as published
@@ -25,7 +25,6 @@
#ifndef UI_MESSAGES_H_
#define UI_MESSAGES_H_
-#include <stdlib.h>
#include <time.h>
#include <unistd.h>
#include <curses.h>
diff --git a/src/util.h b/src/util.h
@@ -1,6 +1,6 @@
/*
This file is part of GNUnet.
- Copyright (C) 2022--2025 GNUnet e.V.
+ Copyright (C) 2022--2026 GNUnet e.V.
GNUnet is free software: you can redistribute it and/or modify it
under the terms of the GNU Affero General Public License as published
@@ -26,7 +26,6 @@
#define UTIL_H_
#include <stdbool.h>
-#include <stdlib.h>
#include <curses.h>
#define UNUSED __attribute__((unused))