diff options
author | Matt Johnston <matt@ucc.asn.au> | 2016-03-15 22:04:13 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2016-03-15 22:04:13 +0800 |
commit | 8fcf6a66336a18e1ea4cc447172d0107d0648085 (patch) | |
tree | 72b6346824a2e73d991987194f39b7e8888f3b6a /loginrec.c | |
parent | 00d658388656bf63656679559f1243a2ab1c6e57 (diff) | |
download | dropbear-8fcf6a66336a18e1ea4cc447172d0107d0648085.tar.gz |
remove unused loginrec_set_addr()
Diffstat (limited to 'loginrec.c')
-rw-r--r-- | loginrec.c | 15 |
1 files changed, 0 insertions, 15 deletions
@@ -305,21 +305,6 @@ login_set_current_time(struct logininfo *li) 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 |