From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl0-f67.google.com ([209.85.160.67]:33924 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751269AbeCTU3M (ORCPT ); Tue, 20 Mar 2018 16:29:12 -0400 Received: by mail-pl0-f67.google.com with SMTP id u11-v6so1732217plq.1 for ; Tue, 20 Mar 2018 13:29:12 -0700 (PDT) From: Stephen Hemminger To: netdev@vger.kernel.org Cc: Stephen Hemminger Subject: [PATCH iproute2 v2 0/9] gcc-8 warning fixes Date: Tue, 20 Mar 2018 13:29:00 -0700 Message-Id: <20180320202909.22166-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: netdev-owner@vger.kernel.org List-ID: This fixes most of the warning seen build iproute2 with gcc-8. There are still a couple in namespace and bpf to resolve related to PATH_MAX. Stephen Hemminger (9): bridge: avoid snprint truncation on time pedit: fix strncpy warning ip: use strlcpy() to avoid truncation tunnel: use strlcpy to avoid strncpy warnings namespace: fix warning snprintf buffer tc_class: fix snprintf warning ematch: fix possible snprintf overflow misc: avoid snprintf warnings in ss and nstat bpf: avoid compiler warnings about strncpy bridge/mdb.c | 4 ++-- ip/iplink.c | 14 +++++++------- ip/tunnel.c | 12 ++++++------ lib/bpf.c | 6 +++--- lib/namespace.c | 6 ++++-- misc/nstat.c | 4 ++-- misc/ss.c | 2 +- tc/m_ematch.c | 2 +- tc/m_pedit.c | 2 +- tc/tc_class.c | 5 +++-- 10 files changed, 30 insertions(+), 27 deletions(-) -- 2.16.2