Print this page
8485 Remove set but unused variables in usr/src/cmd

@@ -3,19 +3,13 @@
  *
  * See the IPFILTER.LICENCE file for details on licencing.
  *
  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
+ * Copyright 2017 Gary Mills
  */
 
-#pragma ident   "%Z%%M% %I%     %E% SMI"
-
-#if !defined(lint)
-static const char sccsid[] = "@(#)ip_fil.c      2.41 6/5/96 (C) 1993-2000 Darren Reed";
-static const char rcsid[] = "@(#)$Id: ipfcomp.c,v 1.24.2.2 2004/04/28 10:34:44 darrenr Exp $";
-#endif
-
 #include "ipf.h"
 
 
 typedef struct {
         int c;

@@ -67,11 +61,10 @@
  * required.
  */
 void printc(fr)
 frentry_t *fr;
 {
-        fripf_t *ipf;
         u_long *ulp;
         char *and;
         FILE *fp;
         int i;
 

@@ -80,11 +73,10 @@
         if ((fr->fr_type != FR_T_IPF) && (fr->fr_type != FR_T_NONE))
                 return;
         if ((fr->fr_type == FR_T_IPF) &&
             ((fr->fr_datype != FRI_NORMAL) || (fr->fr_satype != FRI_NORMAL)))
                 return;
-        ipf = fr->fr_ipf;
 
         if (cfile == NULL)
                 cfile = fopen("ip_rules.c", "w");
         if (cfile == NULL)
                 return;