Format police.
This commit is contained in:
parent
1f1b61fc49
commit
312851eab6
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: af.c,v 1.8 1995/05/24 15:22:52 christos Exp $ */
|
||||
/* $NetBSD: af.c,v 1.9 1995/05/24 15:54:00 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983, 1993
|
||||
@ -37,7 +37,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)af.c 8.1 (Berkeley) 6/5/93";
|
||||
#else
|
||||
static char rcsid[] = "$NetBSD: af.c,v 1.8 1995/05/24 15:22:52 christos Exp $";
|
||||
static char rcsid[] = "$NetBSD: af.c,v 1.9 1995/05/24 15:54:00 mycroft Exp $";
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -48,7 +48,7 @@ static char rcsid[] = "$NetBSD: af.c,v 1.8 1995/05/24 15:22:52 christos Exp $";
|
||||
*/
|
||||
int inet_canon __P((struct sockaddr_in *));
|
||||
int inet_checkhost __P((struct sockaddr_in *));
|
||||
char *inet_format __P((struct sockaddr_in *, char *buf, size_t sz));
|
||||
char *inet_format __P((struct sockaddr_in *, char *, size_t));
|
||||
int inet_hash __P((struct sockaddr_in *, struct afhash *));
|
||||
int inet_netmatch __P((struct sockaddr_in *, struct sockaddr_in *));
|
||||
int inet_portcheck __P((struct sockaddr_in *));
|
||||
@ -182,9 +182,11 @@ inet_canon(sin)
|
||||
char *
|
||||
inet_format(sin, buf, sz)
|
||||
struct sockaddr_in *sin;
|
||||
char *buf; size_t sz;
|
||||
char *buf;
|
||||
size_t sz;
|
||||
{
|
||||
|
||||
strncpy(buf, inet_ntoa(sin->sin_addr), sz);
|
||||
buf[sz - 1] = '\0';
|
||||
return buf;
|
||||
return (buf);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user