summaryrefslogtreecommitdiff
path: root/libexec/identd/openbsd.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-06-10 09:01:52 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-06-10 09:01:52 +0000
commit54a2b1301a6d62aae08be0e7228e40e93e87a32d (patch)
treeda5f614d177a3ce4547d9275324a866548ef857e /libexec/identd/openbsd.c
parentb1cdfb4914a096f5c2893f9a5d29313ea7eca473 (diff)
indent
Diffstat (limited to 'libexec/identd/openbsd.c')
-rw-r--r--libexec/identd/openbsd.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/libexec/identd/openbsd.c b/libexec/identd/openbsd.c
index ba5d5f04973..f6a66dbd892 100644
--- a/libexec/identd/openbsd.c
+++ b/libexec/identd/openbsd.c
@@ -4,7 +4,7 @@
*
* Please send bug fixes/bug reports to: Peter Eriksson <pen@lysator.liu.se>
*
- * $Id: openbsd.c,v 1.10 1998/06/10 03:49:42 beck Exp $
+ * $Id: openbsd.c,v 1.11 1998/06/10 09:01:51 deraadt Exp $
* This version elminates the kmem search in favour of a kernel sysctl to
* get the user id associated with a connection - Bob Beck <beck@obtuse.com>
*/
@@ -41,32 +41,32 @@ k_getuid(faddr, fport, laddr, lport, uid)
int lport;
int *uid;
{
- struct tcp_ident_mapping tir;
+ struct tcp_ident_mapping tir;
struct sockaddr_in *fin, *lin;
int mib[] = { CTL_NET, PF_INET, IPPROTO_TCP, TCPCTL_IDENT };
int error = 0;
int i;
- memset (&tir, 0, sizeof (tir));
+ memset(&tir, 0, sizeof (tir));
tir.faddr.sa_len = sizeof (struct sockaddr);
tir.laddr.sa_len = sizeof (struct sockaddr);
tir.faddr.sa_family = AF_INET;
tir.laddr.sa_family = AF_INET;
fin = (struct sockaddr_in *) &tir.faddr;
- lin = (struct sockaddr_in *) &tir.laddr;
+ lin = (struct sockaddr_in *) &tir.laddr;
- memcpy (&fin->sin_addr, faddr, sizeof (struct in_addr));
- memcpy (&lin->sin_addr, laddr, sizeof (struct in_addr));
+ memcpy(&fin->sin_addr, faddr, sizeof (struct in_addr));
+ memcpy(&lin->sin_addr, laddr, sizeof (struct in_addr));
fin->sin_port = fport;
lin->sin_port = lport;
i = sizeof (tir);
- error = sysctl (mib, sizeof (mib) / sizeof (int), &tir, &i, NULL, 0);
+ error = sysctl(mib, sizeof (mib) / sizeof (int), &tir, &i, NULL, 0);
if (!error && tir.ruid != -1) {
*uid = tir.ruid;
return (0);
}
if (error == -1)
- syslog (LOG_DEBUG, "sysctl failed (%m)");
+ syslog(LOG_DEBUG, "sysctl failed (%m)");
return (-1);
}