Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Sep 2020 08:26:00 +0000 (UTC)
From:      Cy Schubert <cy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r366285 - head/contrib/ipfilter/lib
Message-ID:  <202009300826.08U8Q0I7024408@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cy
Date: Wed Sep 30 08:26:00 2020
New Revision: 366285
URL: https://svnweb.freebsd.org/changeset/base/366285

Log:
  Resurrect ipfilter's getifname, replacing the stub with the real
  function.
  
  MFC after:	2 months

Modified:
  head/contrib/ipfilter/lib/getifname.c

Modified: head/contrib/ipfilter/lib/getifname.c
==============================================================================
--- head/contrib/ipfilter/lib/getifname.c	Wed Sep 30 08:23:43 2020	(r366284)
+++ head/contrib/ipfilter/lib/getifname.c	Wed Sep 30 08:26:00 2020	(r366285)
@@ -16,7 +16,6 @@
  * Given a pointer to an interface in the kernel, return a pointer to a
  * string which is the interface name.
  */
-#if 0
 char *getifname(ptr)
 	struct ifnet *ptr;
 {
@@ -80,13 +79,3 @@ char *getifname(ptr)
 # endif
 #endif
 }
-#else
-char *getifname(ptr)
-	struct ifnet *ptr;
-{
-#if 0
-	ptr = ptr;
-#endif
-	return "X";
-}
-#endif



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009300826.08U8Q0I7024408>