Two warnings were observed with gcc-8.1.1.

Signed-off-by: Miroslav Lichvar <mlich...@redhat.com>
---
 phc2sys.c | 2 +-
 phc_ctl.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/phc2sys.c b/phc2sys.c
index 21cae75..15f8d75 100644
--- a/phc2sys.c
+++ b/phc2sys.c
@@ -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)
 {
        struct sk_ts_info ts_info;
-       char phc_device[16];
+       char phc_device[19];
        int clkid;
 
        /* check if device is CLOCK_REALTIME */
diff --git a/phc_ctl.c b/phc_ctl.c
index a4daa4e..4a78a19 100644
--- a/phc_ctl.c
+++ b/phc_ctl.c
@@ -113,7 +113,7 @@ static int64_t calculate_offset(struct timespec *ts1,
 static clockid_t clock_open(char *device)
 {
        struct sk_ts_info ts_info;
-       char phc_device[16];
+       char phc_device[19];
        int clkid;
 
        /* check if device is CLOCK_REALTIME */
-- 
2.17.1


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to