Compare commits
2 commits
c7f0dbad0b
...
75f622e610
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
75f622e610 | ||
|
|
2718ca6d94 |
3 changed files with 7 additions and 7 deletions
|
|
@ -101,7 +101,7 @@ This project is licensed under the GNU General Public License v3.0 - see the [LI
|
|||
|
||||
## Authors
|
||||
|
||||
- **lohhiiccc** - [GitHub](https://github.com/lohhiiccc)
|
||||
- **lohhiiccc** - [git](git.lohic.dev)
|
||||
|
||||
## See Also
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
#define CMD_NAME g_prog_name.name
|
||||
|
||||
/* Forward declarations */
|
||||
void static inline print_suggest_help(void);
|
||||
static inline void print_suggest_help(void);
|
||||
/* -------------------- */
|
||||
|
||||
enum cli_code
|
||||
|
|
@ -62,7 +62,7 @@ error_invalid_dest(void)
|
|||
return CLI_ERROR;
|
||||
}
|
||||
|
||||
void static inline
|
||||
static inline void
|
||||
print_suggest_help(void)
|
||||
{
|
||||
dprintf(STDERR_FILENO, "Try '%s --help' for more information.\n",
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@
|
|||
#include "internal/ping/scheduler.h"
|
||||
|
||||
/* Forward declarations */
|
||||
static void inline sigint_handler(int sig);
|
||||
static void inline sigalrm_handler(int sig);
|
||||
static inline void sigint_handler(int sig);
|
||||
static inline void sigalrm_handler(int sig);
|
||||
static int install_signal(int signum, void (*handler)(int));
|
||||
|
||||
static struct ping_state *g_state = NULL;
|
||||
|
|
@ -28,14 +28,14 @@ install_signal(int signum, void (*handler)(int))
|
|||
return sigaction(signum, &sa, NULL);
|
||||
}
|
||||
|
||||
static void inline
|
||||
static inline void
|
||||
sigalrm_handler(__unused int sig)
|
||||
{
|
||||
if (NULL != g_state)
|
||||
g_state->send_flag = 1;
|
||||
}
|
||||
|
||||
static void inline
|
||||
static inline void
|
||||
sigint_handler(__unused int sig)
|
||||
{
|
||||
if (NULL != g_state)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue