+/* $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>
}
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;