chore: random cleaning stuff
This commit is contained in:
parent
f6af6473db
commit
e5093af710
3 changed files with 1 additions and 2 deletions
|
|
@ -3,7 +3,6 @@
|
|||
#include <unistd.h>
|
||||
|
||||
#include "cli.h"
|
||||
#include "ft_ping.h"
|
||||
|
||||
int
|
||||
cli_handle_count(const char *arg, t_ping_config *config)
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ cli_parse_uint64(const char *s, uint64_t *out)
|
|||
return 1;
|
||||
|
||||
errno = 0;
|
||||
const uintmax_t v =(uintmax_t)strtoumax(s, &end, 10);
|
||||
const uintmax_t v = (uintmax_t)strtoumax(s, &end, 10);
|
||||
|
||||
if (s == end || ERANGE == errno || '\0' != *end || v > UINT64_MAX)
|
||||
return 1;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue