Compare commits
No commits in common. "75f622e61099ac81d73484ed7d39f01623f800cf" and "c7f0dbad0b70eeafcb0e39847232b796dca5b0c0" have entirely different histories.
75f622e610
...
c7f0dbad0b
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
|
## Authors
|
||||||
|
|
||||||
- **lohhiiccc** - [git](git.lohic.dev)
|
- **lohhiiccc** - [GitHub](https://github.com/lohhiiccc)
|
||||||
|
|
||||||
## See Also
|
## See Also
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
#define CMD_NAME g_prog_name.name
|
#define CMD_NAME g_prog_name.name
|
||||||
|
|
||||||
/* Forward declarations */
|
/* Forward declarations */
|
||||||
static inline void print_suggest_help(void);
|
void static inline print_suggest_help(void);
|
||||||
/* -------------------- */
|
/* -------------------- */
|
||||||
|
|
||||||
enum cli_code
|
enum cli_code
|
||||||
|
|
@ -62,7 +62,7 @@ error_invalid_dest(void)
|
||||||
return CLI_ERROR;
|
return CLI_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void
|
void static inline
|
||||||
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",
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@
|
||||||
#include "internal/ping/scheduler.h"
|
#include "internal/ping/scheduler.h"
|
||||||
|
|
||||||
/* Forward declarations */
|
/* Forward declarations */
|
||||||
static inline void sigint_handler(int sig);
|
static void inline sigint_handler(int sig);
|
||||||
static inline void sigalrm_handler(int sig);
|
static void inline 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 inline void
|
static void inline
|
||||||
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 inline void
|
static void inline
|
||||||
sigint_handler(__unused int sig)
|
sigint_handler(__unused int sig)
|
||||||
{
|
{
|
||||||
if (NULL != g_state)
|
if (NULL != g_state)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue