summaryrefslogtreecommitdiff
path: root/usr.sbin/popa3d
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2005-04-13 02:33:10 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2005-04-13 02:33:10 +0000
commit1aa7b0eba47e9452ea6454af501b33b70e05d060 (patch)
tree046eecb5edae4ab0d192fb5297f35203fc8b44ed /usr.sbin/popa3d
parent8b7d13b0e05b4a89823fc6e4ea4e6043f9540c72 (diff)
use STD{IN,OUT,ERR}_FILENO
Diffstat (limited to 'usr.sbin/popa3d')
-rw-r--r--usr.sbin/popa3d/protocol.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/popa3d/protocol.c b/usr.sbin/popa3d/protocol.c
index 0b77131024e..0ae47dd4b82 100644
--- a/usr.sbin/popa3d/protocol.c
+++ b/usr.sbin/popa3d/protocol.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: protocol.c,v 1.3 2003/05/12 19:28:22 camield Exp $ */
+/* $OpenBSD: protocol.c,v 1.4 2005/04/13 02:33:09 deraadt Exp $ */
/*
* POP protocol handling.
@@ -52,7 +52,7 @@ static void pop_fetch(void)
signal(SIGALRM, pop_timeout);
alarm(POP_TIMEOUT);
- size = read(0, pop_buffer.data, sizeof(pop_buffer.data));
+ size = read(STDIN_FILENO, pop_buffer.data, sizeof(pop_buffer.data));
alarm(0);
signal(SIGALRM, SIG_DFL);