Compare commits

..

2 commits

Author SHA1 Message Date
lohhiiccc
75f622e610 chore: git link update 2026-04-19 12:49:31 +02:00
lohhiiccc
2718ca6d94 fix: ‘inline’ is not at beginning of declaration 2026-04-19 12:48:51 +02:00
3 changed files with 7 additions and 7 deletions

View file

@ -101,7 +101,7 @@ This project is licensed under the GNU General Public License v3.0 - see the [LI
## Authors ## Authors
- **lohhiiccc** - [GitHub](https://github.com/lohhiiccc) - **lohhiiccc** - [git](git.lohic.dev)
## See Also ## See Also

View file

@ -7,7 +7,7 @@
#define CMD_NAME g_prog_name.name #define CMD_NAME g_prog_name.name
/* Forward declarations */ /* Forward declarations */
void static inline print_suggest_help(void); static inline void print_suggest_help(void);
/* -------------------- */ /* -------------------- */
enum cli_code enum cli_code
@ -62,7 +62,7 @@ error_invalid_dest(void)
return CLI_ERROR; return CLI_ERROR;
} }
void static inline static inline void
print_suggest_help(void) print_suggest_help(void)
{ {
dprintf(STDERR_FILENO, "Try '%s --help' for more information.\n", dprintf(STDERR_FILENO, "Try '%s --help' for more information.\n",

View file

@ -2,8 +2,8 @@
#include "internal/ping/scheduler.h" #include "internal/ping/scheduler.h"
/* Forward declarations */ /* Forward declarations */
static void inline sigint_handler(int sig); static inline void sigint_handler(int sig);
static void inline sigalrm_handler(int sig); static inline void sigalrm_handler(int sig);
static int install_signal(int signum, void (*handler)(int)); static int install_signal(int signum, void (*handler)(int));
static struct ping_state *g_state = NULL; static struct ping_state *g_state = NULL;
@ -28,14 +28,14 @@ install_signal(int signum, void (*handler)(int))
return sigaction(signum, &sa, NULL); return sigaction(signum, &sa, NULL);
} }
static void inline static inline void
sigalrm_handler(__unused int sig) sigalrm_handler(__unused int sig)
{ {
if (NULL != g_state) if (NULL != g_state)
g_state->send_flag = 1; g_state->send_flag = 1;
} }
static void inline static inline void
sigint_handler(__unused int sig) sigint_handler(__unused int sig)
{ {
if (NULL != g_state) if (NULL != g_state)