Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dist/ipf/netinet clean up compile time warnings to due c...



details:   https://anonhg.NetBSD.org/src/rev/0bb32b1c2c44
branches:  trunk
changeset: 754054:0bb32b1c2c44
user:      darrenr <darrenr%NetBSD.org@localhost>
date:      Sat Apr 17 22:04:00 2010 +0000

description:
clean up compile time warnings to due caddr_t and empty statements

diffstat:

 sys/dist/ipf/netinet/ip_fil_compat.c |  12 +++---------
 1 files changed, 3 insertions(+), 9 deletions(-)

diffs (47 lines):

diff -r c54ea992f716 -r 0bb32b1c2c44 sys/dist/ipf/netinet/ip_fil_compat.c
--- a/sys/dist/ipf/netinet/ip_fil_compat.c      Sat Apr 17 22:00:33 2010 +0000
+++ b/sys/dist/ipf/netinet/ip_fil_compat.c      Sat Apr 17 22:04:00 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip_fil_compat.c,v 1.1.1.1 2010/04/17 21:36:56 darrenr Exp $    */
+/*     $NetBSD: ip_fil_compat.c,v 1.2 2010/04/17 22:04:00 darrenr Exp $        */
 
 /*
  * Copyright (C) 2010 by Darren Reed.
@@ -107,7 +107,7 @@
        int             fr_curpps;
        union   {
                void            *fru_data;
-               caddr_t         fru_caddr;
+               char            *fru_caddr;
                fripf_t         *fru_ipf;
                frentfunc_t     fru_func;
        } fr_dun;
@@ -157,7 +157,7 @@
 
        union   {
                void            *fru_data;
-               caddr_t         fru_caddr;
+               char            *fru_caddr;
                fripf_t         *fru_ipf;
                frentfunc_t     fru_func;
        } fr_dun;
@@ -924,9 +924,6 @@
                                break;
                        }
                        error = COPYIN(obj->ipfo_ptr, old, sizeof(*old));
-                       if (error == 0)
-                               /* ipstate_save_16_to_current(&old, ptr); */
-                               ;
                        KFREE(old);
                } else {
                        ipstate_save_4_1_0_t *old;
@@ -937,9 +934,6 @@
                                break;
                        }
                        error = COPYIN(obj->ipfo_ptr, old, sizeof(*old));
-                       if (error == 0)
-                               /* ipstate_save_0_to_current(&old, ptr); */
-                               ;
                        KFREE(old);
                }
                break;



Home | Main Index | Thread Index | Old Index