summaryrefslogtreecommitdiff
path: root/atomicio.c
diff options
context:
space:
mode:
Diffstat (limited to 'atomicio.c')
-rw-r--r--atomicio.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/atomicio.c b/atomicio.c
index 87fb9fe75..996beff2f 100644
--- a/atomicio.c
+++ b/atomicio.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: atomicio.c,v 1.16 2006/03/25 13:17:01 djm Exp $ */ 1/* $OpenBSD: atomicio.c,v 1.17 2006/04/01 05:51:34 djm Exp $ */
2/* 2/*
3 * Copyright (c) 2005 Anil Madhavapeddy. All rights reserved. 3 * Copyright (c) 2005 Anil Madhavapeddy. All rights reserved.
4 * Copyright (c) 1995,1999 Theo de Raadt. All rights reserved. 4 * Copyright (c) 1995,1999 Theo de Raadt. All rights reserved.
@@ -33,11 +33,7 @@
33 * ensure all of data on socket comes through. f==read || f==vwrite 33 * ensure all of data on socket comes through. f==read || f==vwrite
34 */ 34 */
35size_t 35size_t
36atomicio(f, fd, _s, n) 36atomicio(ssize_t (*f) (int, void *, size_t), int fd, void *_s, size_t n)
37 ssize_t (*f) (int, void *, size_t);
38 int fd;
39 void *_s;
40 size_t n;
41{ 37{
42 char *s = _s; 38 char *s = _s;
43 size_t pos = 0; 39 size_t pos = 0;