]> arthur.barton.de Git - netatalk.git/blobdiff - sys/solaris/if.c
Remove bdb env on exit
[netatalk.git] / sys / solaris / if.c
index 810e748578685ebd4343d46142314c468a2436d8..7e0918ffb8714200668de55cf5cf85ecbc78922d 100644 (file)
@@ -1,3 +1,10 @@
+/* $Id: if.c,v 1.3 2005-04-28 20:50:07 bfernhomberg Exp $
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif /* HAVE_CONFIG_H */
+
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <sys/sockio.h>
 #include <sys/ddi.h>
 #include <net/if.h>
 #include <netinet/arp.h>
+
+#ifdef STDC_HEADERS
+#include <strings.h>
+#else
 #include <string.h>
+#endif
 
 #include <netatalk/at.h>
 #include <netatalk/aarp.h>
@@ -151,8 +163,10 @@ if_addmulti( queue_t *q, mblk_t *m, char *name, struct sockaddr *sa )
 }
 
     void
-if_pickaddr( struct atif_data *aid )
+if_pickaddr( void *ptr )
 {
+    struct atif_data *aid = (struct atif_data*) ptr;
+
     if ( aid->aid_c.c_type != SIOCSIFADDR ) {
        cmn_err( CE_NOTE, "if_pickaddr context %x\n", aid->aid_c.c_type );
        return;