diff loginrec.c @ 1254:1ed6f39e8aa4

remove unused loginrec_set_addr()
author Matt Johnston <matt@ucc.asn.au>
date Tue, 15 Mar 2016 22:04:13 +0800
parents e0084f136cb8
children 83d85b28b353
line wrap: on
line diff
--- a/loginrec.c	Tue Mar 15 22:03:23 2016 +0800
+++ b/loginrec.c	Tue Mar 15 22:04:13 2016 +0800
@@ -305,21 +305,6 @@
 	li->tv_usec = tv.tv_usec;
 }
 
-/* copy a sockaddr_* into our logininfo */
-void
-login_set_addr(struct logininfo *li, const struct sockaddr *sa,
-	       const unsigned int sa_size)
-{
-	unsigned int bufsize = sa_size;
-
-	/* make sure we don't overrun our union */
-	if (sizeof(li->hostaddr) < sa_size)
-		bufsize = sizeof(li->hostaddr);
-
-	memcpy((void *)&(li->hostaddr.sa), (const void *)sa, bufsize);
-}
-
-
 /**
  ** login_write: Call low-level recording functions based on autoconf
  ** results