Fix -Wformat-overflow warnings.
Two warnings were observed with gcc-8.1.1. Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com>master
parent
a2740768b6
commit
d08bee2771
|
@ -138,7 +138,7 @@ static int run_pmc_port_properties(struct node *node, int timeout,
|
||||||
static clockid_t clock_open(char *device, int *phc_index)
|
static clockid_t clock_open(char *device, int *phc_index)
|
||||||
{
|
{
|
||||||
struct sk_ts_info ts_info;
|
struct sk_ts_info ts_info;
|
||||||
char phc_device[16];
|
char phc_device[19];
|
||||||
int clkid;
|
int clkid;
|
||||||
|
|
||||||
/* check if device is CLOCK_REALTIME */
|
/* check if device is CLOCK_REALTIME */
|
||||||
|
|
|
@ -113,7 +113,7 @@ static int64_t calculate_offset(struct timespec *ts1,
|
||||||
static clockid_t clock_open(char *device)
|
static clockid_t clock_open(char *device)
|
||||||
{
|
{
|
||||||
struct sk_ts_info ts_info;
|
struct sk_ts_info ts_info;
|
||||||
char phc_device[16];
|
char phc_device[19];
|
||||||
int clkid;
|
int clkid;
|
||||||
|
|
||||||
/* check if device is CLOCK_REALTIME */
|
/* check if device is CLOCK_REALTIME */
|
||||||
|
|
Loading…
Reference in New Issue