diff options
author | Eric Faurot <eric@cvs.openbsd.org> | 2016-11-24 20:52:14 +0000 |
---|---|---|
committer | Eric Faurot <eric@cvs.openbsd.org> | 2016-11-24 20:52:14 +0000 |
commit | 286f6f7995a516bb50a3a69c4817ae24be1f0d59 (patch) | |
tree | d1b92ba350613457624a7f01b3063674ea4a961a /usr.sbin/smtpd/ioev.c | |
parent | 7cc247f2eff7d7ef55b01163e2b84d8961de9917 (diff) |
add an io_fileno() accessor
ok gilles@
Diffstat (limited to 'usr.sbin/smtpd/ioev.c')
-rw-r--r-- | usr.sbin/smtpd/ioev.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.sbin/smtpd/ioev.c b/usr.sbin/smtpd/ioev.c index 0ff8218e896..503796c6cd5 100644 --- a/usr.sbin/smtpd/ioev.c +++ b/usr.sbin/smtpd/ioev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ioev.c,v 1.34 2016/11/24 20:44:04 eric Exp $ */ +/* $OpenBSD: ioev.c,v 1.35 2016/11/24 20:52:13 eric Exp $ */ /* * Copyright (c) 2012 Eric Faurot <eric@openbsd.org> * @@ -375,6 +375,12 @@ io_ssl(struct io *io) return io->ssl; } +int +io_fileno(struct io *io) +{ + return io->sock; +} + /* * Buffered output functions */ |