svn commit: r331349 - stable/11/sbin/ifconfig

Renato Botelho garga at FreeBSD.org
Thu Mar 22 10:57:52 UTC 2018


Author: garga (ports committer)
Date: Thu Mar 22 10:57:51 2018
New Revision: 331349
URL: https://svnweb.freebsd.org/changeset/base/331349

Log:
  MFC r322281:
  
  Add missing parenthesis on error message
  
  Approved by:	loos
  Sponsored by:	Rubicon Communications, LLC (Netgate)

Modified:
  stable/11/sbin/ifconfig/ifconfig.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sbin/ifconfig/ifconfig.c
==============================================================================
--- stable/11/sbin/ifconfig/ifconfig.c	Thu Mar 22 09:43:15 2018	(r331348)
+++ stable/11/sbin/ifconfig/ifconfig.c	Thu Mar 22 10:57:51 2018	(r331349)
@@ -762,7 +762,7 @@ top:
 	if ((s = socket(ifr.ifr_addr.sa_family, SOCK_DGRAM, 0)) < 0 &&
 	    (uafp != NULL || errno != EAFNOSUPPORT ||
 	     (s = socket(AF_LOCAL, SOCK_DGRAM, 0)) < 0))
-		err(1, "socket(family %u,SOCK_DGRAM", ifr.ifr_addr.sa_family);
+		err(1, "socket(family %u,SOCK_DGRAM)", ifr.ifr_addr.sa_family);
 
 	while (argc > 0) {
 		p = cmd_lookup(*argv, iscreate);


More information about the svn-src-all mailing list