From owner-svn-src-head@freebsd.org Wed May 23 07:39:06 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A8D14EF32AF; Wed, 23 May 2018 07:39:06 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C62627BFE8; Wed, 23 May 2018 07:39:05 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id AB4CE1FCF2; Wed, 23 May 2018 07:39:03 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w4N7d3xw062453; Wed, 23 May 2018 07:39:03 GMT (envelope-from eadler@FreeBSD.org) Received: (from eadler@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w4N7d34c062450; Wed, 23 May 2018 07:39:03 GMT (envelope-from eadler@FreeBSD.org) Message-Id: <201805230739.w4N7d34c062450@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: eadler set sender to eadler@FreeBSD.org using -f From: Eitan Adler Date: Wed, 23 May 2018 07:39:03 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r334077 - in head/sbin/devd: . tests X-SVN-Group: head X-SVN-Commit-Author: eadler X-SVN-Commit-Paths: in head/sbin/devd: . tests X-SVN-Commit-Revision: 334077 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 May 2018 07:39:06 -0000 Author: eadler Date: Wed May 23 07:39:02 2018 New Revision: 334077 URL: https://svnweb.freebsd.org/changeset/base/334077 Log: devd: correct two warnings - catching a polymorphic type by value - "output between 16 and 95 bytes into a destination of size 80" Modified: head/sbin/devd/devd.cc head/sbin/devd/tests/client_test.c Modified: head/sbin/devd/devd.cc ============================================================================== --- head/sbin/devd/devd.cc Wed May 23 07:39:00 2018 (r334076) +++ head/sbin/devd/devd.cc Wed May 23 07:39:02 2018 (r334077) @@ -1087,7 +1087,7 @@ event_loop(void) try { process_event(buffer); } - catch (std::length_error e) { + catch (const std::length_error& e) { devdlog(LOG_ERR, "Dropping event %s " "due to low memory", buffer); } Modified: head/sbin/devd/tests/client_test.c ============================================================================== --- head/sbin/devd/tests/client_test.c Wed May 23 07:39:00 2018 (r334076) +++ head/sbin/devd/tests/client_test.c Wed May 23 07:39:02 2018 (r334077) @@ -50,7 +50,7 @@ create_two_events(void) FILE *create_stdout; FILE *destroy_stdout; char mdname[80]; - char destroy_cmd[80]; + char destroy_cmd[95]; char *error; create_stdout = popen("mdconfig -a -s 64 -t null", "r");