Mercurial > dropbear
changeset 1254:1ed6f39e8aa4
remove unused loginrec_set_addr()
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 15 Mar 2016 22:04:13 +0800 |
parents | 3b990ddaea4f |
children | 55d485943eb0 |
files | loginrec.c loginrec.h |
diffstat | 2 files changed, 0 insertions(+), 19 deletions(-) [+] |
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
--- a/loginrec.h Tue Mar 15 22:03:23 2016 +0800 +++ b/loginrec.h Tue Mar 15 22:04:13 2016 +0800 @@ -173,10 +173,6 @@ int login_write (struct logininfo *li); int login_log_entry(struct logininfo *li); -/* set the network address based on network address type */ -void login_set_addr(struct logininfo *li, const struct sockaddr *sa, - const unsigned int sa_size); - /* produce various forms of the line filename */ char *line_fullname(char *dst, const char *src, size_t dstsize); char *line_stripname(char *dst, const char *src, size_t dstsize);